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
LCDSmartie plugin
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="jf2020" data-source="post: 12661" data-attributes="member: 10892"><p>[USER=10913]AllenConquest[/USER] Very good job! This was a long awaited plug-in and your plug-in is working very well!</p><p></p><p>Now to the accented characters problem.</p><p></p><p>The issue here is that the standard dot matrix font in classic LCD/VFD controllers doesn't innclude any accented characters in its extended set (besides ä, ü and ö) but has the full range of japanese characters instead.</p><p>There's no way to change that unfortunately. What would have been very nice is that those controllers have TWO sets of extended characters, a japanese one and a european one... </p><p>So if one wants to display accented characters, he needs to use a user defined character. The problem here is that there are only 8 of them (so you can defined only 8 accented characters at the same time) and that if you have to use them for that you can no longer use them to display a bargraph for instance. That means that you can't have a bargarph and accented characters on the same screen.</p><p>Defining accented characters on the fly as user characters is a feature that I hope will be sometime soon implemented in LCDSmartie, but there will still be the issue that it will then not be possible to mix a bargraph on the same screen.</p><p></p><p>The best way to handle this now is likely to filter the accented characters and to replace them by their non accented counterpart in the string that is sent to LCDSmartie. There are quite a few advantages to this:</p><p>- it's very easy to do,</p><p>- Ok you don't have accented characters but the text is readable and not messed up by strange characters,</p><p>- you can keep using the user defined characters to have a bargraph.</p><p></p><p>Allen can yo implement a filter in the plugin, at least until LCD Smartie provides support for accented characters?</p><p></p><p>It will just be a function like this</p><p>[code]</p><p>Function ReplaceAccentedChars(ByVal input As String) As String</p><p> input = input.Replace("À", "A")</p><p> input = input.Replace("Á", "A")</p><p> input = input.Replace("Â", "A")</p><p> input = input.Replace("Ã", "A")</p><p> input = input.Replace("Ä", "A")</p><p> input = input.Replace("â", "a")</p><p> input = input.Replace("ã", "a")</p><p> input = input.Replace("ä", "a")</p><p> input = input.Replace("à", "a'")</p><p> input = input.Replace("á", "a'")</p><p></p><p> input = input.Replace("È", "E'")</p><p> input = input.Replace("É", "E'")</p><p> input = input.Replace("Ê", "E")</p><p> input = input.Replace("Ë", "E")</p><p> input = input.Replace("ê", "e")</p><p> input = input.Replace("ë", "e")</p><p> input = input.Replace("è", "e'")</p><p> input = input.Replace("é", "e'")</p><p></p><p> input = input.Replace("Ì", "I")</p><p> input = input.Replace("Í", "I")</p><p> input = input.Replace("Î", "I")</p><p> input = input.Replace("Ï", "I")</p><p> input = input.Replace("î", "i")</p><p> input = input.Replace("ï", "i")</p><p> input = input.Replace("ì", "i'")</p><p> input = input.Replace("í", "i'")</p><p></p><p> input = input.Replace("Ò", "O")</p><p> input = input.Replace("Ó", "O")</p><p> input = input.Replace("Ô", "O")</p><p> input = input.Replace("Õ", "O")</p><p> input = input.Replace("Ö", "O")</p><p> input = input.Replace("ô", "o")</p><p> input = input.Replace("õ", "o")</p><p> input = input.Replace("ö", "o")</p><p> input = input.Replace("ò", "o'")</p><p> input = input.Replace("ó", "o'")</p><p></p><p> input = input.Replace("Ù", "U")</p><p> input = input.Replace("Ú", "U")</p><p> input = input.Replace("Û", "U")</p><p> input = input.Replace("Ü", "U")</p><p> input = input.Replace("û", "u")</p><p> input = input.Replace("ü", "u")</p><p> input = input.Replace("ù", "u'")</p><p> input = input.Replace("ú", "u'")</p><p></p><p> input = input.Replace("Ý", "Y")</p><p> input = input.Replace("ý", "y")</p><p> input = input.Replace("ñ", "n")</p><p></p><p> Return input</p><p>End Function</p><p>[/code]</p><p></p><p>that will be called with the message string just before it is returned by function 2 or 5 </p><p></p><p>[code]</p><p> }</p><p> }</p><p> return ReplaceAccentedChars(message);</p><p> }</p><p>[/code]</p><p></p><p></p><p>PS: Credit for the replace character function should be given to Marco Bellinaso.</p></blockquote><p></p>
[QUOTE="jf2020, post: 12661, member: 10892"] [USER=10913]AllenConquest[/USER] Very good job! This was a long awaited plug-in and your plug-in is working very well! Now to the accented characters problem. The issue here is that the standard dot matrix font in classic LCD/VFD controllers doesn't innclude any accented characters in its extended set (besides ä, ü and ö) but has the full range of japanese characters instead. There's no way to change that unfortunately. What would have been very nice is that those controllers have TWO sets of extended characters, a japanese one and a european one... So if one wants to display accented characters, he needs to use a user defined character. The problem here is that there are only 8 of them (so you can defined only 8 accented characters at the same time) and that if you have to use them for that you can no longer use them to display a bargraph for instance. That means that you can't have a bargarph and accented characters on the same screen. Defining accented characters on the fly as user characters is a feature that I hope will be sometime soon implemented in LCDSmartie, but there will still be the issue that it will then not be possible to mix a bargraph on the same screen. The best way to handle this now is likely to filter the accented characters and to replace them by their non accented counterpart in the string that is sent to LCDSmartie. There are quite a few advantages to this: - it's very easy to do, - Ok you don't have accented characters but the text is readable and not messed up by strange characters, - you can keep using the user defined characters to have a bargraph. Allen can yo implement a filter in the plugin, at least until LCD Smartie provides support for accented characters? It will just be a function like this [code] Function ReplaceAccentedChars(ByVal input As String) As String input = input.Replace("À", "A") input = input.Replace("Á", "A") input = input.Replace("Â", "A") input = input.Replace("Ã", "A") input = input.Replace("Ä", "A") input = input.Replace("â", "a") input = input.Replace("ã", "a") input = input.Replace("ä", "a") input = input.Replace("à", "a'") input = input.Replace("á", "a'") input = input.Replace("È", "E'") input = input.Replace("É", "E'") input = input.Replace("Ê", "E") input = input.Replace("Ë", "E") input = input.Replace("ê", "e") input = input.Replace("ë", "e") input = input.Replace("è", "e'") input = input.Replace("é", "e'") input = input.Replace("Ì", "I") input = input.Replace("Í", "I") input = input.Replace("Î", "I") input = input.Replace("Ï", "I") input = input.Replace("î", "i") input = input.Replace("ï", "i") input = input.Replace("ì", "i'") input = input.Replace("í", "i'") input = input.Replace("Ò", "O") input = input.Replace("Ó", "O") input = input.Replace("Ô", "O") input = input.Replace("Õ", "O") input = input.Replace("Ö", "O") input = input.Replace("ô", "o") input = input.Replace("õ", "o") input = input.Replace("ö", "o") input = input.Replace("ò", "o'") input = input.Replace("ó", "o'") input = input.Replace("Ù", "U") input = input.Replace("Ú", "U") input = input.Replace("Û", "U") input = input.Replace("Ü", "U") input = input.Replace("û", "u") input = input.Replace("ü", "u") input = input.Replace("ù", "u'") input = input.Replace("ú", "u'") input = input.Replace("Ý", "Y") input = input.Replace("ý", "y") input = input.Replace("ñ", "n") Return input End Function [/code] that will be called with the message string just before it is returned by function 2 or 5 [code] } } return ReplaceAccentedChars(message); } [/code] PS: Credit for the replace character function should be given to Marco Bellinaso. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
LCDSmartie plugin
Contact us
RSS
Top
Bottom