[opencms-dev] Some additional file translation rules for dealing with diacritics
Christian Steinert
christian at christian-steinert.de
Thu Aug 9 04:50:30 CEST 2012
Dear All
Maybe somebody else is interested in this. I created some additional file translation rules to deal with additional characters that have diacritical marks.
The following rules can be added to the other translation rules in opencms-vfs.xml. You should leave all other rules as they are. Please make sure that you add these rules BEFORE THE LAST TWO RULES because the last two rules allow the default characters and replace everything else with "x".
These rules convert all latin characters into the the most similar basic form and they will also convert everything to lower case.
Kind regards
Christian
<translation>s#[AÀàÁáÂâÃãÅåĀāĂ㥹ǍǎǞǟǠǡǺǻȀȁȂȃȦȧḀḁẚẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặ]#a#g</translation>
<translation>s#[BƀƁɓƂƃḂḃḄḅḆḇ]#b#g</translation>
<translation>s#[CÇçĆćĈĉĊċČčƇƈɕḈḉ]#c#g</translation>
<translation>s#[DĎďĐđƊɗƋƌDžDzȡɖḊḋḌḍḎḏḐḑḒḓ]#d#g</translation>
<translation>s#[EÈèÉéÊêËëĒēĔĕĖėĘęĚěȄȅȆȇȨȩḔḕḖḗḘḙḚḛḜḝẸẹẺẻẼẽẾếỀềỂểỄễỆệ]#e#g</translation>
<translation>s#[FƑƒḞḟ]#f#g</translation>
<translation>s#[GĜĝĞğĠġĢģƓɠǤǥǦǧǴǵḠḡ]#g#g</translation>
<translation>s#[HĤĥĦħȞȟɦḢḣḤḥḦḧḨḩḪḫẖ]#h#g</translation>
<translation>s#[IÌìÍíÎîÏïĨĩĪīĬĭĮįİƗɨǏǐȈȉȊȋḬḭḮḯỈỉỊị]#i#g</translation>
<translation>s#[JĴĵǰʝ]#j#g</translation>
<translation>s#[KĶķƘƙǨǩḰḱḲḳḴḵ]#k#g</translation>
<translation>s#[LĹĺĻļĽľĿŀŁłƚLjȴɫɬɭḶḷḸḹḺḻḼḽ]#l#g</translation>
<translation>s#[MɱḾḿṀṁṂṃ]#m#g</translation>
<translation>s#[NÑñŃńŅņŇňƝɲƞȠNjǸǹȵɳṄṅṆṇṈṉṊṋ]#n#g</translation>
<translation>s#[OÒòÓóÔôÕõØøŌōŎŏŐőƟƠơǑǒǪǫǬǭǾǿȌȍȎȏȪȫȬȭȮȯȰȱṌṍṎṏṐṑṒṓỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợ]#o#g</translation>
<translation>s#[PƤƥṔṕṖṗ]#p#g</translation>
<translation>s#[Qʠ]#q#g</translation>
<translation>s#[RŔŕŖŗŘřȐȑȒȓɼɽɾṘṙṚṛṜṝṞṟ]#r#g</translation>
<translation>s#[SŚśŜŝŞşŠšȘșʂṠṡṢṣṤṥṦṧṨṩ]#s#g</translation>
<translation>s#[TŢţŤťŦŧƫƬƭƮʈȚțȶṪṫṬṭṮṯṰṱẗ]#t#g</translation>
<translation>s#[UÙùÚúÛûŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜȔȕȖȗṲṳṴṵṶṷṸṹṺṻỤụỦủỨứỪừỬửỮữỰự]#u#g</translation>
<translation>s#[VƲʋṼṽṾṿ]#v#g</translation>
<translation>s#[WŴŵẀẁẂẃẄẅẆẇẈẉẘ]#w#g</translation>
<translation>s#[XẊẋẌẍ]#x#g</translation>
<translation>s#[YÝýÿŸŶŷƳƴȲȳẎẏẙỲỳỴỵỶỷỸỹ]#y#g</translation>
<translation>s#[ZŹźŻżŽžƵƶȤȥʐʑẐẑẒẓẔẕẕ]#z#g</translation>
More information about the opencms-dev
mailing list