[wp-polyglots] Transliteration and use of two scripts in Serbian
language
Kimmo Suominen
kimmo at global-wire.fi
Thu Apr 17 17:33:22 GMT 2008
I was in a bit of a hurry in the morning when I put that plugin together.
When I was driving to the office afterwards, I was thinking the list of
characters didn't look like UTF-8... :)
There is a shortcut trick in the code that tries to derive the lowercase
letters from the uppercase ones. Definitely with UTF-8 using strtolower
will not work as intended.
If you complete the array in the current version to include lowercase
as well, it should work. (Just one array in the class now, and the
trick code from the class constructor has been removed.)
Best regards,
+ Kimmo
--
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>
On Thu, Apr 17, 2008 at 02:06:01PM +0200, Milan Dini? wrote:
> Kimmo, thank you for your work on this!
>
> I tried your plugin, but before I needed to convert it to UTF-8 and to
> change those Cyrillic and Latin letters. It converts only upper-case letters
> and it convert them to lower case, so there is need for change in code. I
> uploaded my changes in letters here: http://www.divshare.com/i/4277556-b67
>
> Anyway, if this works as I understood from your description how it should
> works, then again Nikolay must approve inclusion of it in official release,
> or this would be separate project, and something else should be done for
> official packages. But in meanwhile, it could work for those who wants Latin
> version.
>
> Thanks again!
>
> 2008/4/17, Kimmo Suominen <kimmo at global-wire.fi>:
> >
> > Sounds like you could do it exactly how my Character Set Conversions
> > plugin works. Just instead of using iconv you'd use strtr to replace
> > all the cyrillic characters with their latin replacement.
> >
> > So here's a try at a plugin:
> >
> > http://kimmo.suominen.com/sw/srlatin/srlatin.php
> >
> > Let me know if it works for you, or if it needs any character updates,
> > or any other problems.
> >
> > Now, is this conversion specific to serbian, or will it work for
> > other languages as well? (I don't speak serbian. I don't even know
> > the cyrillic letters...)
> >
> > Best regards,
> > + Kimmo
> > --
> > <A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>
> >
> >
> >
> > On Thu, Apr 17, 2008 at 01:54:32AM +0200, Milan Dini? wrote:
> > > I have some specific problem. In Serbian language main script is
> > Cyrillic,
> > > but is also widely used Latin. Translation I did was on Cyrillic, but
> > now I
> > > receive requests for Latin. Transliteration from Cyrillic to Latin is
> > not
> > > problem since for every Cyrillic letter there is one Latin letter and
> > there
> > > are many tools for this.
> > > But problem here is how we can do this easier, and if possible
> > > automatically. I received recommendations for recode-sr-latin which is
> > > included in gettext-tools on GNU/Linux systems and also that this issue
> > > could be solved, for example, by including rule in SVN so that all sr_RS
> > > files should be transliterated to sr_RS at latin. I'm not user of Linux and
> > not
> > > some programmer so I couldn't explain you this better, but if it is
> > > necessary, I can ask one guy who have bigger knowledge of this than me
> > for
> > > helping us solving this, he agreed for that.
> > > The other thing is locale site. I don't need whole interface to be on
> > both
> > > scripts, but those releases should be on both scripts, we must take care
> > for
> > > this also.
> > > Thanks in advance
> >
> >
> > _______________________________________________
> > wp-polyglots mailing list
> > wp-polyglots at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-polyglots
> >
> _______________________________________________
> wp-polyglots mailing list
> wp-polyglots at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-polyglots
More information about the wp-polyglots
mailing list