View Single Post
Old 12-08-2012, 04:41 PM   #135
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
If 11.html is a "catch-all", then my current code is good.

Indeed, right now my code does the following: if the lower-cased version of a keyword starts with [a-z][a-z], then it appends that keyword (and its definition) to the corresponding file; otherwise, it appends it to 11.html.

Example:
Code:
argon -> ar.html
yoga -> yo.html
a- -> 11.html
-meter -> 11.html
o'clock -> 11.html
My previous doubt was raised by the fact that, in the official Italian dictionary, I found a.html or w.html files, suggesting that also accented characters are "allowed" to be there.

For confirming these issues, I will experiment a bit, but now it is quite late...
AlPe is offline   Reply With Quote