Feature suggestion: Different fonts for different input methods

6 messages Options
Embed this post
Permalink
Gerrit Sangel-2

Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
Hello,

I am using several input methods for scim, mostly Japanese but also Chinese
traditional and Chinese simplified and sometimes Korean.

If I choose a Japanese font for the character selection, I don’t see the
simplified chinese characters, because they are not in the font. So I
switched to Code2000, because it more or less has everything in it... The
problem now is that code2000 is really ugly :(

What I think would be really great, if one could specifiy individual fonts for
each input method in the global configuration menu. E.g. for Scim-Anthy, I
would choose IPA Mincho, for Scim-Pinyin some Chinese font, for Scim-Hangeul
some Korean font and for maybe Cangjie some font with traditional glyphs in
it.

Would this maybe be possible and someone also likes this? I guess, this would
be really really great.

Gerrit

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Jens Petersen

Re: Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
Hi Gerrit,

> What I think would be really great, if one could specifiy individual fonts for
> each input method in the global configuration menu. E.g. for Scim-Anthy, I
> would choose IPA Mincho, for Scim-Pinyin some Chinese font, for Scim-Hangeul
> some Korean font and for maybe Cangjie some font with traditional glyphs in
> it.

Your idea sounds nice, but I think the problem is at the application
rendering level: scim does not have any control over the fonts used to
render committed text in applications, so I don't think there is an easy
solution to this problem currently.  In the long term to achieve this it
would require enhancements to gtk/pango etc to handle unihan issues
better, but without storing some language context it is quite hard I guess.

Jens

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Kenichi Handa

Re: Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
In article <[hidden email]>, Jens Petersen <[hidden email]> writes:

> Hi Gerrit,
> > What I think would be really great, if one could specifiy individual fonts for
> > each input method in the global configuration menu. E.g. for Scim-Anthy, I
> > would choose IPA Mincho, for Scim-Pinyin some Chinese font, for Scim-Hangeul
> > some Korean font and for maybe Cangjie some font with traditional glyphs in
> > it.

> Your idea sounds nice, but I think the problem is at the application
> rendering level: scim does not have any control over the fonts used to
> render committed text in applications, so I don't think there is an easy
> solution to this problem currently.  In the long term to achieve this it
> would require enhancements to gtk/pango etc to handle unihan issues
> better, but without storing some language context it is quite hard I guess.

At least, m17n-lib input methods return the information
about language, and as far as I know, gtk/pango handles
language attribute of a text well.  So, the only change we
need is to make scim and gtk-im-module correctly hand over
the language information.

---
Kenichi Handa
[hidden email]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Gerrit Sangel-2

Re: Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jens Petersen
Am Mittwoch 11 Juni 2008 schrieb Jens Petersen:

> Hi Gerrit,
>
> > What I think would be really great, if one could specifiy individual
> > fonts for each input method in the global configuration menu. E.g. for
> > Scim-Anthy, I would choose IPA Mincho, for Scim-Pinyin some Chinese font,
> > for Scim-Hangeul some Korean font and for maybe Cangjie some font with
> > traditional glyphs in it.
>
> Your idea sounds nice, but I think the problem is at the application
> rendering level: scim does not have any control over the fonts used to
> render committed text in applications, so I don't think there is an easy
> solution to this problem currently.  In the long term to achieve this it
> would require enhancements to gtk/pango etc to handle unihan issues
> better, but without storing some language context it is quite hard I guess.
>
> Jens

But I can choose the font which Scim (or in my case Skim) uses globally for
the popup menu? Right now, I’ve set Code2000, because it has more or less
everything in it, but imho this isn’t the best solution.

But if Scim (or is this a Skim issue?) can do this globally, why not for every
input method?

Gerrit

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Jens Petersen

Re: Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
Gerrit Sangel さんは書きました:
> But I can choose the font which Scim (or in my case Skim) uses globally for
> the popup menu? Right now, I’ve set Code2000, because it has more or less
> everything in it, but imho this isn’t the best solution.
>
> But if Scim (or is this a Skim issue?) can do this globally, why not for every
> input method?

What desktop are you using?  KDE?

GNOME (ie gtk and pango) can use several fonts in the same buffer no
problem, but qt has problems in this regard.  It is not SCIM issue if I
am understanding you correctly.

Jens

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Gerrit Sangel-2

Re: Feature suggestion: Different fonts for different input methods

Reply Threaded More More options
Print post
Permalink
Yes, I’m using KDE.

I’m not really sure about QT, but I’ve done a little application myself and it
is absolutely no problem in QT4 to change the fonts in a QLabel with some
html markup.

If you do it like

“This is in font 1 <span font-family="font2">and this in font 2</span>”

or something like this, it works.

But for this issue, I don’t think scim or skim would need different buffers. I
think, if the user could specify the font for each input method, it would be
nothing else than switching the font globally before changing the input
method. Just a little bit more convenient :)

Gerrit

Am Montag 23 Juni 2008 schrieb Jens Petersen:

> Gerrit Sangel さんは書きました:
> > But I can choose the font which Scim (or in my case Skim) uses globally
> > for the popup menu? Right now, I’ve set Code2000, because it has more or
> > less everything in it, but imho this isn’t the best solution.
> >
> > But if Scim (or is this a Skim issue?) can do this globally, why not for
> > every input method?
>
> What desktop are you using?  KDE?
>
> GNOME (ie gtk and pango) can use several fonts in the same buffer no
> problem, but qt has problems in this regard.  It is not SCIM issue if I
> am understanding you correctly.
>
> Jens
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Scim-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/scim-devel

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel