Somehow I get the feeling you all write a lot of XML from time to time.
Since GSoC hasn't really gotten underway I haven't become thoroughly
acquainted with how much or how little XML I'll be writing (since I expect a
good amount of it will be scripted)... But, this seems like it'd be totally
useful. For a quick idea, watch the video or read on...

    http://code.google.com/p/zen-coding/


Basically it allows you to write CSS-selector-like shortcuts in your text
editor, and produces fullform HTML or XML output... So:

    ul>li*3

... results in...

    <ul>
       <li></li>
       <li></li>
       <li></li>
    </ul>

I took a couple of the examples from the getting started tutorial on the
apertium wiki to show how it can be used in more detail. After entering the
shortcuts and expanding them, some text editors allow you to fairly easily
tab through the empty attributes and elements.

dictionary>sdefs>sdef[n]*3+pardefs+section#main[type="standard"]


> <dictionary>

<sdefs>

<sdef n=""></sdef>

<sdef n=""></sdef>

<sdef n=""></sdef>

<pardefs></pardefs>

<section id="main" type="standard"></section>

</sdefs>

</dictionary>



e>p>(l>s)+r>s


> <e>

<p>

<l><s></s></l>

<r><s></s></r>

</p>

</e>



pardef[n="gramofon__n"]>e>p>l+r>s[n="n"]+s[n="sg"]


> <pardef n="gramofon__n">

<e>

<p>

<l></l>

<r><s n="n"></s><s n="sg"></s></r>

</p>

</e>

</pardef>


It's still under development, so if there are kinks there's hope that they
can be corrected. Looks like there are less text editors supported in linux
(no VIM, for instance)... But, I thought I'd pass it on anyway. :)


Ryan
------------------------------------------------------------------------------
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to