[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2015-09-10 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Chris Nighswonger  changed:

   What|Removed |Added

   See Also||http://bugs.koha-community.
   ||org/bugzilla3/show_bug.cgi?
   ||id=11121

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2015-02-01 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

 CC||m.naveed...@gmail.com

--- Comment #20 from Katrin Fischer katrin.fisc...@bsz-bw.de ---
*** Bug 13627 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2014-02-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Karam Qubsi karamqu...@gmail.com changed:

   What|Removed |Added

 CC||karamqu...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2013-12-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

ghulam ghulam_murtaza...@hotmail.com changed:

   What|Removed |Added

 CC||ghulam_murtaza692@hotmail.c
   ||om

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2013-03-19 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Mason James m...@kohaaloha.com changed:

   What|Removed |Added

 Blocks|8375|

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2012-08-02 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Chris Nighswonger cnighswon...@foundations.edu changed:

   What|Removed |Added

 CC||agerged...@yahoo.com

--- Comment #19 from Chris Nighswonger cnighswon...@foundations.edu ---
*** Bug 8563 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2012-07-05 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Chris Nighswonger cnighswon...@foundations.edu changed:

   What|Removed |Added

 Status|Pushed to Master|RESOLVED
 Resolution|--- |WONTFIX

--- Comment #18 from Chris Nighswonger cnighswon...@foundations.edu ---
I'm marking these label/diacritical related bugs as WONTFIX due to the well
rehearsed issues of the pdf standard and diacriticals. If someone wants to put
time into this, feel free to reopen and take ownership of these bugs.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2012-07-05 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Chris Nighswonger cnighswon...@foundations.edu changed:

   What|Removed |Added

 Blocks||8375

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-10-09 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

--- Comment #17 from wajasu matted-34...@mypacks.net 2011-10-09 20:50:56 UTC 
---
I created a debian virtual machine dev environment as described by the
community wiki, and see that perl 5.10.1 is what is used in debian squeeze.  I
applied my one liner patch (utf8::downgrade($line) in label-create-pdf.pl) and
it had no effect.  So I suspect some change in perl, or even a side effect of
how certain modules behave is the reason.  I'm noting this so a future upgrade
might fix the issue for someone if its needed.  I've been running perl 5.12.1,
and now 5.14.2 is out. - Oct 24 2011

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-10-05 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

--- Comment #14 from wajasu matted-34...@mypacks.net 2011-10-05 08:30:09 UTC 
---
Created attachment 5713
  -- http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5713
Bug 2246 - (Partial) Map multibyte UTF8 to single byte for ISOLatin1 fonts
(fixes diacritics ASCII 256 decimal)

Bug 2246 - (Partial) Map multibyte UTF8 to single byte for ISOLatin1 fonts
(fixes diacritics ASCII 256 decimal)

This is a partial fix as well, which attempts to convert the internal
representation
of multibye UTF8 characters to their single byte in the native encoding
(Latin-1)
and allow them to pass through to the PDF stream.

This ONLY fixes those ISOLatin1 diacritics and probably won't solve a full
foreign
language need.  It probably solves the printing case for many historical
records,
but won't take care of the need for the interational community.  I believe
we need to use
a full unicode embedded font in the final solution.

Refer to utf8::downgrade($string,FAIL_OK); (see core perl 
/usr/share/perl5/core_perl/utf8.pm)

Test:
a) I selected a biblio that had a udiaresis (u with 2 dots above, i.e.
Jurgen Habermas)
and created a batch with the one record.  I used the standard Helvitica
font (no truetype)
I exported it as a PDF and saw my label had J (captial A tilde on top,
1/4) rgen for
the author.
b) Applied patch.
c) Exported the pdf again, and saw  J (u with two dots above) rgen

To see what changed in the PDF that was generated:
a) Edit the label-create-pdf.pl and temporarily comment out the
$pdf-Compress(1) line so that
you can see the PDF test instructions when generating. (Export it.)
b) Use a hexfile viewer (I use hexedit), and search for Habermas, and you
will see
the corresponding Jurgen with two bytes C3BC before the patch, and FC after
the patch.
(You can use od -x in unix to also view the PDF if you don't have hexedit).

Some explanation:
The utf8 flag is turned off, and the FC is passed thru.  I tried
Encode:decode routines,
but I think they keep the perl internal utf8 flag on, and the bytes stream
out as C3BC.
I've read when strings are concatenated, the flag can switch on/off, so I
hoped something
in the PDF::Reuse module would not tern it back on (if thats what is
helping).

Observations:
I tried this on my production 3.2 ish koha, and it did't work so this patch
is dependent
on other fixes such as
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4293
I hoped folks in older versions could make the change in production without
an upgrade,
but one could try as see since its a staff client tool.

It worked for me 3.4.4 and 3.5.x koho git master  as of October 5th 2011

Things that might be needed:
Pertinent modules?
MyTestEnv version   HEAD Required
PDF::API2   2.019   2  
 Yes
PDF::API2::Page 2.019   2  
 Yes
PDF::API2::Simple   1.1.4   1  
 Yes
PDF::API2::Util 2.019   2  
 Yes
PDF::Reuse  0.350.33   
 Yes
PDF::Reuse::Barcode 0.050.05   
 Yes
PDF::Table  0.9.3   0.9.3  
 Yes
Unicode::Normalize  1.030.32   
 Yes

perl -v
This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64-linux

If you test, be sure to test with a diacritic that has a corresponding
ISOLatin1
mapping.

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-10-05 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

--- Comment #15 from Katrin Fischer katrin.fisc...@bsz-bw.de 2011-10-05 
08:34:36 UTC ---
I am a bit confused about your example - because I had tested German umlauts
like 'Jürgen' with one of the last patches that got into master for this bug
and it worked nicely. Could your problem here be related to unicode
normalization?

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-09-28 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

wajasu matted-34...@mypacks.net changed:

   What|Removed |Added

 CC||matted-34...@mypacks.net

--- Comment #12 from wajasu matted-34...@mypacks.net 2011-09-28 06:43:55 UTC 
---
Improvement
With hopes of getting diacritics ( u dieresis and such) printing for my barcode
labels, I dug into
/home/koha344/koha/intranet/cgi-bin/labels/label-create-pdf.pl

I found that if I set the utf8 flag off for the $line string, it would end up
sending FC instead of C3BC in the PDF.  So for the standard PDF encodings that
we currently allow (Helvitica, Courier, etc) the single byte maps to those
common foreign characters just fine.  It worked for me!  

Here is the utf8::downgrade($line); that I used from this section of code. I
am running perl 5.12.1 (that I built), with the latest cpan modules pulled as
of Sept 2011, and koha 3.4.4. (your wide character fix in PDF.pm helped). It
seems to get through my latest version of PDF::Reuse, that I have installed.

sub _print_text {
my $label_text = shift;
foreach my $text_line (@$label_text) {
my $pdf_font = $pdf-Font($text_line-{'font'});
my $line = BT /$pdf_font $text_line-{'font_size'} Tf
$text_line-{'text_llx'} $text_line-{'text_lly'} Td ($text_line-{'line'}) Tj
 ET;

utf8::downgrade($line);  # This forces the utf8 flag off so the single
byte will pass thru for regular PDFEncoding etc.
 # (So now my basic diacritics in the standard
character sets will not get double encoded. Yeah!
 # Note: This is not meant to deal with the
case where we want to use unicode with TTF - truetype fonts.

$pdf-Add($line);
}
}

This bug is log overdue, and it might be possible for someone to test and patch
it, since I might not be able to get it done before Oct 8th 2011 for the 3.6
release.

Note: I didn't want to loose this info.  I also tried this fix in my production
3.0.2 environment.  I had to add the PDF.pm patch for wide chars, to get a PDF
to be generated.  Once I added the downgrade line in 3.0.2, my
create-label-pdf.pl hung, with some recursion error and cpu at 100%.  So I gave
up on 3.0.2.  The PDF:Reuse in that version might be the factor, or something
else.
I'm going to grab koha 3.4.5 and try the fix on that. We can't wait till next
year for this, can we?

I also coded it with a TTF truetype font, but was missing the description
lines, so I didn't have time to figure out the drawing logic.  We would need to
add a way to select a font path, or upload one, and store it in the database.
Also, this fix might be usable for other create-*-pdf.pl scripts (like patron
cards).

This is a partial fix if we need to support other languages.

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-09-28 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

--- Comment #13 from D Ruth Bavousett r...@bywatersolutions.com 2011-09-28 
12:51:13 UTC ---
I tried making wajasu's edit to a system known to be having this problem--code
updated as of last night at HEAD, and it did not resolve the problem for me--I
got a this PDF is broken and cannot be repaired error.  :(

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-09-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

 CC||r...@bywatersolutions.com

--- Comment #11 from Katrin Fischer katrin.fisc...@bsz-bw.de 2011-09-21 
14:23:32 UTC ---
*** Bug 6899 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-06-03 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Ian Walls ian.wa...@bywatersolutions.com changed:

   What|Removed |Added

 CC||ian.walls@bywatersolutions.
   ||com
   Patch Status|Signed Off  |Passed QA

--- Comment #9 from Ian Walls ian.wa...@bywatersolutions.com 2011-06-03 
20:19:04 UTC ---
Confirming that the signed-off patch does indeed allow the PDF to be opened,
even if the Unicode characters are not properly displaying (as is the case for
the Hindi word दिशा) or come with post-character cruft (as with author Brontë)

Marking as Passed QA, as although this bug is far from resolved, this patch
greatly improves the usability of the label creator for the occasions when only
a few titles have non-ASCII characters.

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

[Koha-bugs] [Bug 2246] Label printing doesn't work with Unicode characters

2011-05-29 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2246

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

  QAContact||koha-b...@lists.koha-commun
   ||ity.org

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA Contact for the bug.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/