Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 20 Aug 2014, 04:46
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
yaf-splash does no unicode (but...)
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 17 Jan 2008, 22:42    Post_subject:  yaf-splash does no unicode (but...)  

the title says it.
If I load unicode from a file and display it with yaf-splash, I see garbage.

My workaround in Muppy008.1 is a replacement for yaf-splash.

It seems to cover all calls I could find in /usr/sbin/

Code:
#!/bin/bash

XMESSAGE="gxmessage -encoding UTF-8"

text=`echo $@ | sed -e "s/.*-text \(.*\)/\1/"`
#echo "$text"

a=`echo $@ | sed -e "s/-bg pale /-bg /" -e "s/-placement [^ ]* //" -e "s/-outline [^ ]* //" -e "s/-margin [^ ]* //" -e "s/-text .*//"`

#echo $a

exec $XMESSAGE -center -buttons "" -borderless $a "$text"




gxmessage does not know all options like "-margin", so those are filtered out.
It also does not know "pale green", so such "pale " is removed.
It also cannot position the window at bottom, so it is always centered.

I think we should no longer use apps that cannot deal with unicode, though yaf-splash is quite nifty.
Could we rewrite it with freebasic?
That creates so small executables! Smile

Mark
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 19 Jan 2008, 09:48    Post_subject:  

I updated the code, I inserted "exec".
Without this, the messages could not be closed by PetGet Sad
Mark
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0470s ][ Queries: 11 (0.0120s) ][ GZIP on ]