Ruby PDF::Reader matching bullet point with Regex - ruby

I have parsed a pdf document in Ruby with PDF::Reader. The bullet point of the pdf file appears in my parsed text as a strange cube with F0B7 inside like this (I also attached a print screen):
__
|F0|
|B7|
I would like to know if I can match this "bullet point" with regex and if so, what would be the appropriate way to do it? I have absolutely no idea to tackle this issue as I am not even sure that this is part of the string in the first place. Thanks.

This is a unicode symbol with codepoint F0B7.
Unfortunately your Ubuntu installation has a default font that misses that glyph, and when glyph is missing in the font definition, the common approach is to draw it’s codepoint in a square.
The regexp to match it would be:
/\uF0B7/

Related

Is it possible to render zero-width unicode characters as a special replacement character with a custom font?

I'm trying to figure out a way to render certain unicode characters as a custom character instead of how they are supposed to appear.
For example, I would like the character U+0E4A to render as something else rather than how it currently appears in Windows.
I tried to create a quick custom font and to replace those glyphs but it only seems to work in some programs. My font will work correctly in LibreOffice Writer but it won't display properly in WordPad. Replacing regular letters works fine, but for other unicode characters they seem to revert back to a default way of rendering and don't display correctly.
Here is a screenshot of my custom font in WordPad, as you can see I made an obvious edit to the B character but I also did the same to the U+0E4A code point and yet it renders as normal.
If there is a special font that already does this that would probably save me the time of making a custom font, but either way I can't figure out how to render these characters as a custom character.

cc.LabelTTF: spacing between characters

Is there a way to change a space between characters? Some ttf font strings look very compressed.
The maximum closest thing I've managed to find is cc.FontDefinition
But it doesn't look like it contains anything specific I need.
As far as I know there is no method to change space between characters but you can change letters position via accessing it.
label.getLetter(index);
returns the character as a sprite. And then you can set its position.

Matlab Text mode subscripts too big in axis label (LaTeX interpreter)

If I have the axis label $x_\textrm{ABC}$, the ABC is way too big. I tried $x_\textrm{\scriptsize ABC}$ and $x_\textrm{\tiny ABC}$, but that prevents the LaTeX code from being interpretted (I end up seeing the raw code instead of the formatted math). How does one shrink the subscript text size when the subscript is a name that needs to be spelled in text mode?
I posted this to usenet yesterday, but no response so far.
I also tried to modify the text in Acrobat Pro, but I can't actually highlight the individual series of characters (it's the y-axis label).
Finally, I tried to modify it in inkscape, but same problem.
A respondent at the usenet link provided the answer: To use \mathrm instead of \textrm. It looks way better.

Text is printed incorrectly using ZPL

I print a text using ZPL but they are printed incorrectly. It has gaps in the middle. They are printed correctly to the real printer via the ZebraDesigner. But they are wrong when printing via ZPL:
^FT246,70^A0R,16,16
^FB900,2,,
^FDMaisstaerke, Austernuce, Cashewnuss,Pilz, Mais, Lattich, Pack Choi,Sojasprossen^FS
It is printed as 'Maisstaerke, Austernuce, Cashewnuss,Pilz, Mais, Lattich, Pack Choi, Sojasprossen'
(there is a big gap after 'Mais,').
http://screencast.com/t/sTiaxC3cMg
http://screencast.com/t/0QkypnsPyF89
Please help.
Thanks
I'm unable to reproduce the issue, but the field block width seems rather large; you didn't specify any label dimensions in the original post. If you use the following code--a combination from the original post and your comments:
^XA
^PW560
^LL560
^LS0
^FO246,70^GB28,300,,^FS
^FT246,70^A0R,16,16 ^FB300,2,, ^FDMaisstaerke, Austernuce, Cashewnuss,Pilz, Mais, Lattich, Pack Choi,Sojasprossen^FS
^PQ1,0,1,Y
^XZ
I can reproduce what is possibly the issue--the field block automatic word wrapping--by reducing the field block width to 300 dots.
I also drew a box around the block for visualization. You can test in on the Labelary Viewer.
Finally, if you're somehow composing the data make sure there are no special (non printable, such as tab, non-UTF-8 or accented) characters in it, and if so, you will have to pre-escape them.

Where can I find this unicode character?

I'm looking to find a unicode character that looks like ≪ or ≫ but rotated 90º and 270º to use in a GUI to signify something can be dragged vertically.
Does anybody know of a character like this?
How about:
︽ PRESENTATION FORM FOR VERTICAL LEFT DOUBLE ANGLE BRACKET (U+FE3D)
︾ PRESENTATION FORM FOR VERTICAL RIGHT DOUBLE ANGLE BRACKET (U+FE3E)
Well if you are looking for unicode characters here you have all http://www.tamasoft.co.jp/en/general-info/unicode.html
i dont know if there are ones that you are looking for but for example you have arrows in row 2B00 also i saw few eariler
As far as I can see there aren't any symbols that you want.
But it might be appropriate for you to use the varios other arrow symbols that are defined starting at U+2190 (←). For example U+21d3 is ⇓.
Under Windows you may use the charmap Tool with font set to Arial Unicode. Or have a look here: http://www.utf8-chartable.de/unicode-utf8-table.pl?start=8592
I'll put this here.
Just in case ツ

Resources