Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include the slug transliteration plugin into the core of GS
#8
ccagle8 Wrote:I am confused looking at this plugin of Zegnåt’s. Does anyone feel comfortable helping me implement this into the core? I can always try and hunt down Zegnat too…
Oh joy, I’ve not been forgotten yet. It seems there hasn’t even been found anyone to replace me ;-)

I’ll update the issue over at Google Code with an explanation of the code soonish.

Quote:UPDATE: An explanation of the plugin code and working has been posted.

ccagle8 Wrote:I’ve heard that this plugin has it’s own problems…
Problems were reported, but they were very specific and edge-case. Most of them could never be reproduced by other users (including me) which made them hard to fix. Of course some of the problems can be circumvented just by having this integrated in the core: due to the nature of plugins the transliteration code ran after GetSimple processed everything already.

ccagle8 Wrote:It looks like [the transliteration values] are coming from the respective language file
Yes. That was the best way I could think off to make these values extendable by the users. It’s not feasible to have hard-coded tables for all possible languages, especially due to transliteration differences between languages. An example would be German and Swedish. In German tremata (¨) are often transliterated as -e (ö → oe) but in Swedish people often opt for just removing it (ö → o).

yojoe Wrote:I'm not sure if google doesn't offer an API for char conversion table.
Google offers an API as part of the Language API Family. I’m not sure whether we could implement it though, due to its JavaScript nature.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!


Messages In This Thread
Include the slug transliteration plugin into the core of GS - by Zegnåt - 2011-05-01, 21:45:17



Users browsing this thread: 4 Guest(s)