home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
Stuttering Ticker
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pirppuli" data-source="post: 801824" data-attributes="member: 79793"><p>Here's a bit more refined set for an example:</p><p></p><p>[CODE]</p><p>Replace With Is Regex</p><p>[\u2018-\u201b] ' x</p><p>[\u201c-\u201f] " x</p><p>\p{Pd} - x</p><p>\u2024 . x</p><p>\u2025 .. x</p><p>\u2026 ... x</p><p>\u2047 ?? x</p><p>\u2048 ?! x</p><p>\u2049 !? x</p><p>€ e</p><p>[^\u0000-\u00FF] <space> x</p><p>[/CODE]</p><p></p><p>Basically, every line before the last one translates problematic characters into the 0-255 character code range. The last line then filters out all remaining double-byte characters by replacing them with spaces. Feel free to add new ones as you need them (see e.g. <a href="http://semplicewebsites.com/sites/default/files/latinise_verbose.js_.txt" target="_blank">this JS replacement example</a>).</p><p></p><p>Sample for translating variations of capital N (add before the [^\u0000-\u00FF] line):</p><p></p><p>[CODE]</p><p>Replace With Is Regex</p><p>[ŃŇŅṊṄṆǸƝṈȠNjÑNJ] N x</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Pirppuli, post: 801824, member: 79793"] Here's a bit more refined set for an example: [CODE] Replace With Is Regex [\u2018-\u201b] ' x [\u201c-\u201f] " x \p{Pd} - x \u2024 . x \u2025 .. x \u2026 ... x \u2047 ?? x \u2048 ?! x \u2049 !? x € e [^\u0000-\u00FF] <space> x [/CODE] Basically, every line before the last one translates problematic characters into the 0-255 character code range. The last line then filters out all remaining double-byte characters by replacing them with spaces. Feel free to add new ones as you need them (see e.g. [URL="http://semplicewebsites.com/sites/default/files/latinise_verbose.js_.txt"]this JS replacement example[/URL]). Sample for translating variations of capital N (add before the [^\u0000-\u00FF] line): [CODE] Replace With Is Regex [ŃŇŅṊṄṆǸƝṈȠNjÑNJ] N x [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
Stuttering Ticker
Contact us
RSS
Top
Bottom