Re: imagemagick convert: japanese text broken in freebsd
On Mon, Dec 15, 2008 at 6:21 AM, Giorgos Keramidas keram...@ceid.upatras.gr wrote: On Sun, 14 Dec 2008 23:17:38 -0800, Charlie Kester corky1...@comcast.net wrote: The conversations on ports@ seem to be mostly concerned with the needs of port maintainers rather than the users of ports. If you have problems getting a port to build or a package added, it feels like the right place to get help. But I'm not sure whether it's the place for questions that come up after the initial install. questions@ seems to be the place for those. I think you got that right. lists.freebsd.org says: freebsd-ports Porting software to FreeBSD freebsd-questions User questions It's nice to have a list for people who are *porting* software, but the list for general `user questions' is here. I certainly agree, and hope every time Wojciech posts NTG or OT the OP's thread doesn't get turned into a flamewar on Where this post should go.. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, 14 Dec 2008 23:17:38 -0800, Charlie Kester corky1...@comcast.net wrote: The conversations on ports@ seem to be mostly concerned with the needs of port maintainers rather than the users of ports. If you have problems getting a port to build or a package added, it feels like the right place to get help. But I'm not sure whether it's the place for questions that come up after the initial install. questions@ seems to be the place for those. I think you got that right. lists.freebsd.org says: freebsd-ports Porting software to FreeBSD freebsd-questions User questions It's nice to have a list for people who are *porting* software, but the list for general `user questions' is here. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
Hi, I know that IM support japanese text. On Freebsd 7.0 with latest imagemagick built from port (6.4.7) and msgothic.ttc copied from windows partition, imagick extension of PHP installed by pecl. in terminal (zsh) I type: convert origin.jpg -fill white -font /usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc -pointsize 125 -stroke blue -strokewidth 1 -draw text 20,130 '' straight.jpg IM did not informed any error, but the result is japanese text broken (question marks). However, if I ran PHp script (see below), japanese displayed in image fine. What is the reason and how can I solve that? thansk and regards, NTG please do ask on imagemagick support! it's not part of FreeBSD and this problem doesn't look like FreeBSD specific. If you find it FreeBSD port specific, ask at freebsd-ports___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On Sat, 13 Dec 2008 20:20:23 -0800 (PST) cuongvt free...@vuhanhnhu.com wrote: Hi, I know that IM support japanese text. On Freebsd 7.0 with latest imagemagick built from port (6.4.7) and msgothic.ttc copied from windows partition, imagick extension of PHP installed by pecl. in terminal (zsh) I type: convert origin.jpg -fill white -font /usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc -pointsize 125 -stroke blue -strokewidth 1 -draw text 20,130 'がくせい' straight.jpg IM did not informed any error, but the result is japanese text broken (question marks). Hello, It works for me with ImageMagick-6.4.5.5 and ImageMagick-6.4.7.5. First, please make sure that the cause of the problem is not something simple, i.e. make sure that a) you don't have a wrong /non-UTF-8/ locale (not very likely since you wouldn't get question marks); b) you compiled ImageMagick with IMAGEMAGICK_TTF and IMAGEMAGICK_FONTCONFIG. If these are the case, then it's almost certain that fontconfig is somehow confused with that Microsoft font. For example, see this thread on XeTeX mailing list about Microsoft YaHei font: http://www.tug.org/pipermail/xetex/2007-May/006539.html If you use -text directive without -font specified, ImageMagick will use the fonts from /usr/local/lib/ImageMagick-6.4.7/config/type-ghostscript.xml and this will produce question marks with Japanese UTF-8 string, which seems to be the case. So, if you don't want to use some free non-Microsoft font, you can try to do this: 1) Regenerate fontconfig cache ('fc-cache -f -v' as root). 2) Check if MS Gothic is visible to ImageMagick, i.e. try %convert -list font The output should contain Font: MS-ゴシック-標準 family: MS ゴシック style: Normal stretch: Normal weight: 400 glyphs: /path/to/msgothic.ttc in ja_JP.UTF-8, or Font: MS-Gothic-Regular family: MS Gothic in en_US.UTF-8 locale. 3) Then try %convert orig.jpg -font MS-ゴシック-標準 -verbose -fill white \ -pointsize 125 -stroke blue -strokewidth 1 \ -draw text 20,130 'がくせい' straight.jpg if you use ja_JP.* locale (-font MS-Gothic-Regular if you use en_US.UTF-8 -- note that the command is locale-sensitive) and see if this makes any difference. Best regards. - -- Nikola Lečić = Никола Лечић fingerprint : FEF3 66AF C90E EDC3 D878 7CDC 956D F4AB A377 1C9B -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iJwEAQEDAAYFAklFVtMACgkQ/MM/0rYIoZin4wP/Zhlf++1GS8jWitrcT0wq0Rkr cROjjb0DOusXnZnq9LdWac3kjOv5mAUENu7jVy+9rGqvmGhDFkgBi4/mBrcSePGv cTzSMqsWAeeF+JTizyqJCyRjaz2iOuEjQ1y6zvkOj5D9EE+udXmR6BE7u3HdgZKL mknYg8Y4ARyu1N+tiOw= =W84X -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On Sun, 14 Dec 2008 10:03:18 +0100 (CET) Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: NTG please do ask on imagemagick support! Interestingly, he did (and, as it appears, before you replied): http://www.imagemagick.org/discourse-server/viewtopic.php?f=1t=12713 There are some of us here who are interested in all things related to Unicode and complex scripts questions; we are interested to have such things working on FreeBSD. The OP's question was very interesting to me _as a FreeBSD user_. You are of course not obliged to reply at all. The fact that people often get better replies about application X running on FreeBSD on FreeBSD list than on a native list/forum reveals something good about FreeBSD community IMHO. Best regards. - -- Nikola Lečić = Никола Лечић fingerprint : FEF3 66AF C90E EDC3 D878 7CDC 956D F4AB A377 1C9B -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iJwEAQEDAAYFAklFW9AACgkQ/MM/0rYIoZhMNQQAn9qEQwOEw3aNwTG7quq+KbnX z7tp0dDevcooHbEkWTLqf24D8OiFrjl1dyC7zuE9Wwe3fAGKjVWbYBtshTW0Yusk CbARjQCq85JKAz0LUmTJChJWCmbwy0M4SSNYJ20F/aX2lbFcEUGKL3pZudMWu+tj npo9qKOF+jvjS0P3Vr0= =0IHu -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
There are some of us here who are interested in all things related to Unicode and complex scripts questions; we are interested to have such things working on FreeBSD. The OP's question was very interesting to me _as a FreeBSD user_. You are of course not obliged to reply at all. The fact that people often get better replies about application X running on FreeBSD on FreeBSD list than on a native list/forum reveals something good about FreeBSD community IMHO. or very bad app X support. anyway - it's NTG! it's really HARD today to browse that list and see anything about FreeBSD. if it has to be every app on the world support - why it's not called everything-quest...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun 14 Dec 2008 at 11:17:27 PST Nikola Le??i?? wrote: There are some of us here who are interested in all things related to Unicode and complex scripts questions; we are interested to have such things working on FreeBSD. The OP's question was very interesting to me _as a FreeBSD user_. You are of course not obliged to reply at all. The fact that people often get better replies about application X running on FreeBSD on FreeBSD list than on a native list/forum reveals something good about FreeBSD community IMHO. By posting here, the OP is more likely to get an answer from other users who are using app X on FreeBSD. Asking in the App X forum is likely to get an unhelpful answer from *their* local curmudgeons: No one here uses FreeBSD, and it's not a priority for the App X developers. Go away. My point being, getting App X working on FreeBSD is often a higher priority for us than it is for them, and someone here might have already gone to the trouble of figuring it out. I see nothing wrong in asking whether that's the case. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, 14 Dec 2008 23:18:47 +0100 (CET), Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: There are some of us here who are interested in all things related to Unicode and complex scripts questions; we are interested to have such things working on FreeBSD. The OP's question was very interesting to me _as a FreeBSD user_. You are of course not obliged to reply at all. The fact that people often get better replies about application X running on FreeBSD on FreeBSD list than on a native list/forum reveals something good about FreeBSD community IMHO. or very bad app X support. anyway - it's NTG! it's really HARD today to browse that list and see anything about FreeBSD. if it has to be every app on the world support - why it's not called everything-quest...@freebsd.org It *is* called what you don't want to believe its name is. The name is `freebsd-questions' not `freebsd-questions-about-the-base-system-only'. Wojciech, I am aware that this is probably going to be hardly enough to convince you, but you are _harming_ the Project by posting this sort of thing to the list of `_general_ questions about FreeBSD'. Please, STOP doing that. We may have to block you from posting to the lists if this keeps going and increasing in intensity. pgpSoyOuuQeh2.pgp Description: PGP signature
Re: imagemagick convert: japanese text broken in freebsd
The name is `freebsd-questions' not `freebsd-questions-about-the-base-system-only'. Wojciech, I am aware that this is probably going to be hardly enough to convince you, but you are _harming_ the Project by posting this sort of it's only Your opinion. My opinion is different. This list gets totally polluted by OT traffic that DO HARM the Project, because it's more and more difficult to get help, and give help to people that posts ON-TOPIC. It's complete mess! So i WILL respond NTG or OT to questions that are NTG/OT. EOT from me about this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, Dec 14, 2008 at 8:25 PM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: The name is `freebsd-questions' not `freebsd-questions-about-the-base-system-only'. Wojciech, I am aware that this is probably going to be hardly enough to convince you, but you are _harming_ the Project by posting this sort of it's only Your opinion. My opinion is different. This list gets totally polluted by OT traffic that DO HARM the Project, because it's more and more difficult to get help, and give help to people that posts ON-TOPIC. It's complete mess! So i WILL respond NTG or OT to questions that are NTG/OT. I really wish I had your free time. I am happy, however, that you were promoted to questions@ police. EOT from me about this. How about making it EOT from you about everything that is not contributional? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
Glen Barber-2 wrote: On Sun, Dec 14, 2008 at 8:25 PM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: The name is `freebsd-questions' not `freebsd-questions-about-the-base-system-only'. Wojciech, I am aware that this is probably going to be hardly enough to convince you, but you are _harming_ the Project by posting this sort of it's only Your opinion. My opinion is different. This list gets totally polluted by OT traffic that DO HARM the Project, because it's more and more difficult to get help, and give help to people that posts ON-TOPIC. It's complete mess! So i WILL respond NTG or OT to questions that are NTG/OT. I really wish I had your free time. I am happy, however, that you were promoted to questions@ police. EOT from me about this. How about making it EOT from you about everything that is not contributional? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi all Firstly I'm terribly sorry for wrongly posted question not related to freebsd. I will pay attention so that this wrong posting will not occurr again. This is my fault. But I admit that freebsd-questions mailing list is really really very active mailing list which is have not only guru in OS itself but many many professionials of apps/servers running on top of it. (In fact I also posted this to imagemagick-nabble and imagemagick forum also, the result is I always get most useful/friendly/step-by-step answers from freebsd-questions that I can not reveive from the others). Once again, sorry you. Best regards, PS: But one thing I still could not understand is that in the past, the others and I posted many many questions about Gnome, KDE, xfce, fluxbox, php, java, squid, clamav, tripwire, anything but no any complaints, right? -- View this message in context: http://www.nabble.com/imagemagick-convert%3A-japanese-text-broken-in-freebsd-tp20997257p21007145.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, Dec 14, 2008 at 8:51 PM, vuthecuong vuthecu...@luvina.net wrote: Hi all Firstly I'm terribly sorry for wrongly posted question not related to freebsd. I will pay attention so that this wrong posting will not occurr again. This is my fault. No, it is not. Questions@ is a general list for general FreeBSD questions. Getting something FreeBSD related to work, regardless of base-vs-ports, is FreeBSD related. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, Dec 14, 2008 at 8:58 PM, Glen Barber glen.j.bar...@gmail.comwrote: On Sun, Dec 14, 2008 at 8:51 PM, vuthecuong vuthecu...@luvina.net wrote: Hi all Firstly I'm terribly sorry for wrongly posted question not related to freebsd. I will pay attention so that this wrong posting will not occurr again. This is my fault. No, it is not. Questions@ is a general list for general FreeBSD questions. Getting something FreeBSD related to work, regardless of base-vs-ports, is FreeBSD related. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org a Glen stated anything dealing with FreeBSD base-vs-ports is FreeBSD related. Many of us I know are starting to get tired of the police. And it seems like he won't be bothering us with posts for a while since he told a FreeBSDd person off on this thread. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, 14 Dec 2008 17:51:23 -0800 (PST), vuthecuong vuthecu...@luvina.net wrote: Hi all Firstly I'm terribly sorry for wrongly posted question not related to freebsd. I will pay attention so that this wrong posting will not occurr again. This is my fault. But I admit that freebsd-questions mailing list is really really very active mailing list which is have not only guru in OS itself but many many professionials of apps/servers running on top of it. (In fact I also posted this to imagemagick-nabble and imagemagick forum also, the result is I always get most useful/friendly/step-by-step answers from freebsd-questions that I can not reveive from the others). Some of us disagree with the 'off topic police'. If you have questions about programs that _run_ on FreeBSD, please keep asking here. Nothing has changed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
Giorgos Keramidas writes: Some of us disagree with the 'off topic police'. If you have questions about programs that _run_ on FreeBSD, please keep asking here. Nothing has changed. Umm ... while one can ask those questions here (questions@) and hore to get answered, I believe the sanctioned forum is po...@. It's rather lower traffic, which is not a bad thing. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun, Dec 14, 2008 at 10:31 PM, Robert Huff roberth...@rcn.com wrote: Giorgos Keramidas writes: Some of us disagree with the 'off topic police'. If you have questions about programs that _run_ on FreeBSD, please keep asking here. Nothing has changed. Umm ... while one can ask those questions here (questions@) and hore to get answered, I believe the sanctioned forum is po...@. It's rather lower traffic, which is not a bad thing. I agree that they probably *should* be asked on ports@, but because it is lower traffic, there is a lesser chance of getting a solution to a problem. I didn't see any clear definition on the lists.freebsd.org site stating questions@ was base only. -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
Glen Barber writes: Umm ... while one can ask those questions here (questions@) and hore to get answered, I believe the sanctioned forum is po...@. It's rather lower traffic, which is not a bad thing. I agree that they probably *should* be asked on ports@, but because it is lower traffic, there is a lesser chance of getting a solution to a problem. Not necessarily. I've heard of knowledgable poeple who are on ports@ but not questi...@. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: imagemagick convert: japanese text broken in freebsd
On Sun 14 Dec 2008 at 19:45:24 PST Robert Huff wrote: Glen Barber writes: Umm ... while one can ask those questions here (questions@) and hore to get answered, I believe the sanctioned forum is po...@. It's rather lower traffic, which is not a bad thing. I agree that they probably *should* be asked on ports@, but because it is lower traffic, there is a lesser chance of getting a solution to a problem. Not necessarily. I've heard of knowledgable poeple who are on ports@ but not questi...@. The conversations on ports@ seem to be mostly concerned with the needs of port maintainers rather than the users of ports. If you have problems getting a port to build or a package added, it feels like the right place to get help. But I'm not sure whether it's the place for questions that come up after the initial install. questions@ seems to be the place for those. I haven't been on either list very long, however, and I could have been misled by a small sample size. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
imagemagick convert: japanese text broken in freebsd
Hi, I know that IM support japanese text. On Freebsd 7.0 with latest imagemagick built from port (6.4.7) and msgothic.ttc copied from windows partition, imagick extension of PHP installed by pecl. in terminal (zsh) I type: convert origin.jpg -fill white -font /usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc -pointsize 125 -stroke blue -strokewidth 1 -draw text 20,130 'がくせい' straight.jpg IM did not informed any error, but the result is japanese text broken (question marks). However, if I ran PHp script (see below), japanese displayed in image fine. What is the reason and how can I solve that? thansk and regards, Below is PHP script: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; lang=ja xml:lang=ja dir=ltr head titlesample373/title /head body ?php /* ファイルはUTF-8で保存してね */ $im = new Imagick('sf.jpg'); $idraw = new ImagickDraw(); /* フォント設定 */ $idraw-setFont(/usr/X11R6/lib/X11/fonts/TrueType/msgothic.ttc); /* フォントサイズ設定 */ $idraw-setFontSize(32); /* gravity設定 */ $idraw-setGravity(Imagick::GRAVITY_CENTER); $im-annotateImage($idraw, 0, 0, 0, 日本語); $im-writeImage('sample373a.jpg'); /* $idraw-clear(); 2008/09/30追記:destroyと同様にClearDrawingWandを呼ぶので必要なし */ $idraw-destroy(); /* $im-clear(); 2008/09/30追記:destroyと同様にClearMagicWandを呼ぶので必要なし */ $im-destroy(); ? /body /html -- View this message in context: http://www.nabble.com/imagemagick-convert%3A-japanese-text-broken-in-freebsd-tp20997257p20997257.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org