Error while using Turkish fonts (ISO-8859-9 or Win1254)

Hi,
First of all thanks a lot for this amazing tool...

I just seen this tool. I'm very new on this. I am trying to test but I couldn't write Turkish fonts on PDF document from Progress Database?

How can I do this?

Regards,
Mucip:)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Just try mine!

Hi Mucip
Just try with mine I attached above. You put it in the same location as the other diffs, and set the code page to and voila!
you can use cyrillic.p in the samples/super/ directory as a starting point. You will have to check and modify the first included file (to set some paths) and it will generate you a turkish 1254 pdf (provided you adapt it a little bit and you replace the russian text with some turkish text).
I've tried this afternoon, but got some problems ; it might be cause by me development version which is not stable enough, I have to try again with the development version on the SVN (the one available here) which is stable. If I fix a small bug I'll let you know so that you can use it.
regards
JC


Which version are you using?

Hi,
Which version are you using?
Version 3 is unable to process something else than western european code page.
Current development version, has tyhis ability, however this code page has not been defined yet, for lack of contributer or tester.
Tell me which version you are using. Would you be willing helping me into implementing this code page?
We would have to create two text files and it would work. Similar files can be found for other codepages like 1250.diff or 1251.diff (there are 2 different ways of achieving this as demonstrated in these 2 files)...
Regards
JC


Development version TRUNK...

I'm using last development version from your page (http://websvn.oehive.org/dl.php?repname=pdfinclude&path=%2Ftrunk%2F&rev=...)

I will be very glad to help you incase of solve this problem. Please just tell (teach) me how to help you.

Waiting answer from you?

Regards,
Mucip:)


Convert to utf-8

Hi,

You can try convert the strings:

function iso2utf returns character (p-char as char):

return codepage-convert(p-char,"UTF-8","ISO8859-1").

end.


Long way...

Hi,
Thanks but I guess this way will be long way. As I tested, pdfinclude is little bit slow unfortunatelly already.

Regards,
Mucip:)


please try with attachment

Can you please try with with the file 1254.txt (renamed to 1254.diff) that is attached to this message?


AttachmentSize
1254.txt2.93 KB

One sample...

Hi,
I tryed to make one diff file for win1254. Please could you check it if I made it correct?...

Regards,
Mucip:)


AttachmentSize
1254.txt1.09 KB

Just try with mine

Hi Mucip
Just try with mine, the one I attached above. You put it in the same location as the other diffs, and set the code page to and voila!
you can use cyrillic.p in the samples/super/ directory as a starting point. You will have to check and modify the first included file (to set some paths) and it will generate you a turkish 1254 pdf (provided you adapt it a little bit and you replace the russian text with some turkish text).
I've tried this afternoon, but got some problems ; it might be cause by me development version which is not stable enough, I have to try again with the development version on the SVN (the one available here) which is stable. If I fix a small bug I'll let you know so that you can use it.
regards
JC


Error?

Hi,
First of all thanks for your kind interest...

I did everything that you wrote but I got error "pdf_set_base14_codepage-Code page 1254 not supported. Srteam = Spdf"

BUt it was working with Russian codepage. I did modification on path you wrote...

I guess that we have problem on 1254.diff file. Because all other diff files are working well...

Regards,
Mucip:)


Example

Try with the example. See attached files (.p and .diff)
There was a small problem in the .diff file, I fixed it. Please use the new one provided here.
I also attached 1254.pdf, which is the result I obtain.


AttachmentSize
1254.pdf4.69 KB
1254.p1.38 KB
1254.txt2.94 KB

Perfect Job... :)

Hi,
Great Job :) It works perfect with the new version of 1254.diff file. I will check the performance of PdfInclude in some reports and I will inform you about result?

Thanks a lot for your kind interest.

Regards,
Mucip:)


How did it go?

Hi Mucip
So how did it go? Is it ok for performance?
If not, can you tell me what kind of operations you are performing?
TIA
JC


Performance?

Hi Jc,
Infact it's fast enaugh. But when I tryed to write on early prepared pdf file (importing) then it goes little bit slower...

But in anycase preparing pdf files is very nice in 4GL programs. Thanks a lot. I will keep you informed in the future later using of PdfInclude...

Regards,
Mucip:)


1254.diff file is not found

Hi
The error means that the 1254.diff file is not found by pdfinclude.
Make sure:
* you use mine (i.e. the one I attached to a previous message)
* it is in the same directory as the other diff files.
* it is named 1254.diff and not 1254.txt
Read you soon!
JC


I will try...

Hi,
I will try but I do not know any idea how to get this diff file. This will be my first time. I found below site.

http://www.jdawiseman.com/papers/trivia/character-entities.html

One question: Should I write to this diff file only differences? Please could you give me little more advice?

Regards,
Mucip:)


It won't take so long

It won't take so long, it's only just a matter of writing a new mapping file, similar to 1250.diff or the like.
As for the performance, what are you trying to achieve? Sometimes, using pdfinclude another way may lead to better performance...