Pplog can't read Greek categories

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
koulaxizis
Posts: 452
Joined: Sun 17 Jul 2011, 18:43
Location: Greece
Contact:

Pplog can't read Greek categories

#1 Post by koulaxizis »

Hello! I have translated pplog completely into Greek using UTF-8 encoding and everything seemed ok until i tried to view the articles under one certain category with Greek name. Then, it showed no results at all! There were plenty of articles under this category so i should see some results... I don't have this problem with the English categories, nor with any of the other translated into Greek items. Any ideas?
[b]Christos Koulaxizis[/b]
[i]Woof woof from Greece![/i]

[color=darkred][url=https://sourceforge.net/projects/puppystuff/][ Puppy Stuff Repository ][/url][/color]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

deja vu font

#2 Post by don570 »

I not a programmer however I found that
Barry Kauler found that some apps don't display the DEJA VU font.
Barry wrote about DEJA VU font HERE

So apparently he switched to SANS font and this allowed
Asian font characters. I show the switching code that I copied
from the pinstall.sh script in the language packs.

...but I have no clue if this is related to your problem
with one heading.

Code: Select all



#120924 DejaVu font no good for non-Latin languages... 
#see also similar code in /usr/local/petget/hacks-postinstall.sh. 
LANGPACKLANG=zh 
case $LANGPACKLANG in 
 zh*|ja*|ko*) #chinese, japanese, korean 
  sed -i -e 's%DejaVu Sans%Sans%' ./etc/xdg/templates/_root_* 
  if [ -d ./root/.jwm ];then 
   sed -i -e 's%DejaVu Sans%Sans%' ./root/.jwm/themes/*-jwmrc 
   sed -i -e 's%DejaVu Sans%Sans%' ./root/.jwm/jwmrc-theme 
  fi 
  [ -d ./etc/xdg/openbox ] && sed -i -e 's%DejaVu Sans%Sans%' ./etc/xdg/openbox/*.xml 
  [ -d ./root/.config/openbox ] && sed -i -e 's%DejaVu Sans%Sans%' ./root/.config/openbox/*.xml 
  GTKRCFILE="$(find ./usr/share/themes -type f -name gtkrc | tr '\n' ' ')" 
  for ONEGTKRC in $GTKRCFILE 
  do 
   sed -i -e 's%DejaVu Sans%Sans%' $ONEGTKRC 
  done 
  if [ -d ./root/.mozilla ];then 
   MOZFILE="$(find ./root/.mozilla -type f -name prefs.js -o -name '*.css' | tr '\n' ' ')" 
   for ONEMOZ in $MOZFILE 
   do 
    sed -i -e 's%DejaVu Sans%Sans%' $ONEMOZ 
   done 
  fi 
 ;; 
esac 
________________________

User avatar
koulaxizis
Posts: 452
Joined: Sun 17 Jul 2011, 18:43
Location: Greece
Contact:

#3 Post by koulaxizis »

Unfortunately this is not the case...

Thanks for trying though, i appreciate it!! :)
[b]Christos Koulaxizis[/b]
[i]Woof woof from Greece![/i]

[color=darkred][url=https://sourceforge.net/projects/puppystuff/][ Puppy Stuff Repository ][/url][/color]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Pplog can't read Greek categories

#4 Post by L18L »

koulaxizis wrote:... Any ideas?
Uploading your version of pplog and your blog might help to help...

User avatar
koulaxizis
Posts: 452
Joined: Sun 17 Jul 2011, 18:43
Location: Greece
Contact:

Re: Pplog can't read Greek categories

#5 Post by koulaxizis »

L18L wrote:
koulaxizis wrote:... Any ideas?
Uploading your version of pplog and your blog might help to help...
You are right... :)

I have uploaded an English version as reference HERE.

And i have upload the Greek version HERE.

Problem #1 - When i give a Greek name to a category, it displays no post under this category

Problem #2 - When i do a search with Greek characters, i get a "Chinese" result page

Problem #3 - When i add or edit content with Greek title, i get "Chinese" response, although the post appears ok!

These problems exists only when i run pplog on the server, but they don' t occur when i run it locally on Puppy!
[b]Christos Koulaxizis[/b]
[i]Woof woof from Greece![/i]

[color=darkred][url=https://sourceforge.net/projects/puppystuff/][ Puppy Stuff Repository ][/url][/color]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Pplog can't read Greek categories

#6 Post by L18L »

koulaxizis wrote:These problems exists only when i run pplog on the server, but they don' t occur when i run it locally on Puppy!
Sorry, I was thinking that I can help locally.
But I know nothing about your server,

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Pplog can't read Greek categories

#7 Post by L18L »

Maybe SJPPLOG is better ?
See comment Greek Translation at http://pplog.scottjarvis.com/?viewDetailed=00021 :?:

User avatar
koulaxizis
Posts: 452
Joined: Sun 17 Jul 2011, 18:43
Location: Greece
Contact:

Re: Pplog can't read Greek categories

#8 Post by koulaxizis »

L18L wrote:Maybe SJPPLOG is better ?
See comment Greek Translation at http://pplog.scottjarvis.com/?viewDetailed=00021 :?:
I have tried it, it's really nice but i prefer the simpler version! ;)

I uploaded my pplog version on GitHub for download and further editing by anyone.

http://github.com/koulaxizis/pplog

Thanks for your help brother! :)
[b]Christos Koulaxizis[/b]
[i]Woof woof from Greece![/i]

[color=darkred][url=https://sourceforge.net/projects/puppystuff/][ Puppy Stuff Repository ][/url][/color]

Post Reply