Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ae.xml issues #114

Open
drdhaval2785 opened this issue Apr 8, 2017 · 0 comments
Open

ae.xml issues #114

drdhaval2785 opened this issue Apr 8, 2017 · 0 comments
Assignees
Labels
enhancement New website features

Comments

@drdhaval2785
Copy link
Contributor

A typical line in ae.txt

<><P>{@Abate,@} {%v. t.%} {#hras#} c, {#laGayati#} (D.), {#Sam#} c.
<>({#Samayati#}). {@2@} (price) {#nyUnIkf#} 8 U;
<>{#avasad#} c. {%-v. i.%} {#kzi#} pass., {#hras#} 1 P; {#pra-
<>-upa-Sam#} 4 P. {@-ment,@} {%s.%} {#nyUnIkaraRaM;
<>hrAsaH, kSayaH#}.

Corresponding line in ae.xml

<H1><h><key1>abate</key1><key2>Abate,</key2></h><body><b>Abate,</b> <i>v. t.</i> <s>hras</s> c., <s>laGayati</s> (D.), <s>Sam</s> c. <lb/>(<s>Samayati</s>). <b>2</b> (price) <s>nyUnIkf</s> 8 U; <lb/><s>avasad</s> c. <i>-v. i.</i> <s>kzi</s> pass., <s>hras</s> 1 P; <s>pra-</s> <lb/><s>-upa-Sam</s> 4 P. <b>-ment,</b> <i>s.</i> <s>nyUnIkaraRaM;</s> <lb/><s>hrAsaH, kSayaH</s>.</body><tail><L>5</L><pc>001</pc></tail></H1>

When I tried to figure out some way to find out a way to break the entries for better rendering in stardict, the following is the observation which may help us better markup the various subentries
[.] { is the regex which finds out the appropriate break.

Something like this will be produced

<><P>{@Abate,@} {%v. t.%} {#hras#} c, {#laGayati#} (D.), {#Sam#} c.
<>({#Samayati#})
. {@2@} (price) {#nyUnIkf#} 8 U;
<>{#avasad#} c
. {%-v. i.%} {#kzi#} pass., {#hras#} 1 P; {#pra-
<>-upa-Sam#} 4 P
. {@-ment,@} {%s.%} {#nyUnIkaraRaM;
<>hrAsaH, kSayaH#}.

Maybe ae.xml may have this information in some structured way.
What do you say @funderburkjim ?

Kindly do some stats regarding their occurrence.

Another observation . {@- is the regex for joining words e.g Abatement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New website features
Projects
None yet
Development

No branches or pull requests

2 participants