[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Highlight file for gabc notation
From:       Elie Roux <elie.roux () telecom-bretagne ! eu>
Date:       2008-11-28 13:08:02
Message-ID: 492FED32.8080009 () telecom-bretagne ! eu
[Download RAW message or body]

Hello,

I'm the main developer of gregorio, a free gregorian chant score
typesetting software (http://home.gna.org/gregorio/). In my software, I
developped a notation for gregorian chant scores called gabc. Syntax
highlighting is extremely useful in gabc, it make it much more clear, so
I made a syntax highlighting file for kate (joined). Do you think you
can integrate it into kate?

Thank you in advance,
-- 
Elie

["gabc.xml" (text/xml)]

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Elie Roux - elie.roux@telecom-bretagne.eu
     version1.0 - 10 november 2008 -->
<language name="GABC" version="1.10" kateversion="2.4" section="Other" extensions="*.gabc" \
mimetype="text/plain" casesensitive="1" author="Elie Roux (elie.roux@telecom-bretagne.eu)" \
license="GPL">  <highlighting>
    <contexts>
      <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar attribute="Attribute" context="Attribute" char=":"/>
        <StringDetect attribute="Separation" context="Score Text" String="%%" \
insensitive="FALSE"/>  </context>
      <context name="Attribute" attribute="Attribute" lineEndContext="#pop">
        <DetectChar attribute="Attribute Name" context="Normal" char=";"/>
      </context>
      <context name="Score Text" attribute="Score Text" lineEndContext="#stay">
        <DetectChar attribute="Notes" context="Notes" char="("/>
        <RangeDetect attribute="Translation" context="#stay" char="[" char1="]"/>
        <RangeDetect attribute="Text Markups" context="#stay" char="&lt;" char1="&gt;"/>
      </context>
      <context name="Notes" attribute="Notes" lineEndContext="#stay">
        <DetectChar attribute="Notes" context="#pop" char=")"/>
        <RegExpr attribute="Notes Base" context="#stay" String="[a-mA-M]+"/>
        <RegExpr attribute="Alterations" context="#stay" \
String="[&gt;&lt;\~xXyYvVoOwWqQ-Ss\._'1234]+"/>  <RegExpr attribute="Space" context="#stay" \
String="[`,;!: /zZ]+"/>  </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Attribute" defStyleNum="dsNormal" italic="true"/>
      <itemData name="Separation" defStyleNum="dsNormal" bold="true"/>
      <itemData name="Score Text" defStyleNum="dsNormal" bold="true"/>
      <itemData name="Text Markups" defStyleNum="dsFloat" bold="true"/>
      <itemData name="Translation" defStyleNum="dsNormal" italic="true"/>
      <itemData name="Notes" defStyleNum="dsNormal"/>
      <itemData name="Notes Base" defStyleNum="dsNormal"/>
      <itemData name="Alterations" defStyleNum="dsFloat" italic="true"/>
      <itemData name="Space" defStyleNum="dsString" bold="true"/>
    </itemDatas>
  </highlighting>
</language>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic