Monday, 22 April 2013

flashcard for sei 征 in Curl markup


Here is a Curl flashcard using data from kanjicards.org ( kanji 1,578 of  3,082)


One difference is that the text in the Curl card is selectable in the browser or on the desktop as text (there are no images.) Here is the markup:
 {fc
        {kj 征}
        {onyomi セイ}
        {transl-en  subjugate, attack the rebellious, collect taxes}
        {cmpds
            {wrd 遠征} {hirag えんせい} {transl expedition, campaign, \(performer’s\) tour; away series \(baseball\)}
            {wrd 征服} {hirag せいふく} {transl conquest, subjugation, overcoming}
            {wrd 長征} {hirag ちょうせい} {transl lengthy military expedition, the Long March}
            {wrd 出征} {hirag しゅっせい} {transl departure \(for the front\)}
            {wrd 征く} {hirag ゆく} {transl to conquer, to subjugate}
            {wrd 外征} {hirag がいせい} {transl foreign campaign}
            {wrd 再征} {hirag さいせい} {transl second punitive expedition}
            {wrd 出征家族} {hirag しゅっせいかぞく} {transl family of a soldier at the front}
            {wrd 出征軍} {hirag しゅっせいぐん} {transl army in the field}
            {wrd 出征軍人} {hirag しゅっせいぐんじん} {transl soldier at the front}
}}}

The macro's in use are fc for flashcard, wrd for compound word, hirag for hiragana and others which should be self-explanatory. I have markled the delimiting braces as bold red.


1 comment:

KanjiRecog said...

As can be seen from the alignment issue, a table is not being used !

But in Curl the text elements are Graphics (such as TextVisual ) so the issue can be addressed and yet leave the text Selectable-As-Text for the end-user.