Problem:(text to speech/gtk/ubuntu)
I have to read out a text in the Gtk::TextBuffer in gtk+/gtkmm.
Please let e know how can i make text to speech. which library should be used ?
OS:ubuntu 10.10
Dev:gtkmm 2.4
Try using Festival
Related
I am using arial .ttf file. I have tried different font file for gujarati such as lohit, padmaa, shruti but it not displaying properly. The characters are not getting substituted properly.
In PDF it displays as :
અરથ પરજ ડરમ વૈભવ સવગે
Originally it should display as:
અર્થ પ્રજા ડ્રમ વૈભવ સ્વર્ગે
I have tried using GlyphSubstitutionTableReader but its not working for me.
Please guide me. Thanks in advance.
iText 5 currently doesn't support any Brahmic scripts. The reason is that these require an implementation of a specific font table called GSUB, which simply isn't there yet. There is no way to get this to display correctly with iText 5.5.5, but anyone is welcome to try and implement it.
I wanna encryption using OTR, so i use the module from github
https://github.com/ChatSecure/OTRKit
i followed that read me file but i cant able to done the encryption,
is any one use the module "OTRKit" from github,
produce simple example for using OTRKit in xcode like encrypt a message "Hello" and Decryot that,(shows text in alert box is enough).
i hope will some one help me,
Thank u...
I'm working on a project for a OSX and I'm using xcode 4.6.3. I need to generate a barcode image with Encoding 128, and insert it in a pdf file.
I've been researching and I can't figure out how I can do that. I tried to use cocoabarcode, I solved ARC error, but stil have some error tried to replace
sAttr = [[NSMutableAttributedString allocWithZone:[self zone]] initWithString:leftCaption attributes:[NSDictionary dictionaryWithObjectsAndKeys:font,NSFontAttributeName,leftAligmentStyle,NSParagraphStyleAttributeName,[NSNumber numberWithFloat:kerning],NSKernAttributeName,nil]];
(error: zone is unavailable: not available in automatic reference counting mode),
and other warnings deprecated methods,
I want to know if someone it's ussing this library, if it's work propertly, or if there are other library like this one for iphone, but I need for OSX, or any other suggestion about what classes or library I should research.
Thank you in advance!
May spire.barcode could help you, it supports Code 128 Barcode
following the official tutorial of gtkmm 3, this is how to instantiate a glade file:
Glib::RefPtr<Gtk::Builder> builder=Gtk::Builder::create_from_file("basic.glade");
So, what's the datatype for "basic.glade"? I know its XML but how to do that in code?
In GTK 2.4 it was:
Glib::RefPtr<Gnome::Glade::Xml> &refXml;
This does not work for me in gtkmm 3 / GTK 3 any more. What I want is to create a class and I need to declare the correct datatype.
Thanks
P.S
The tutorial I am going through is this. I know the code is 2.x, I want to do the same in 3.x
Gtk::Builder is the replacement for Gnome::Glade::Xml.
I need help in using these symbols ⎕, ∨, ๐, Ʌ, and so on. But when I create a PDF with iText these symbols do not appear.
What can I do so that these symbols appear?
You have to use a font and encoding that contains those characters. Your best bet is to use IDENTITY_H for your encoding, as this grants you access to every character within a given font... but you still have to use the right font.
There are several font-manipulation examples within "iText in Action's" chapter on fonts:
http://www.itextpdf.com/book/chapter.php?id=11
The examples are down the right side. Buying the book would probably help too.
I had the same problem too and I figured out using IDENTITY_H for encoding is working fine.
For example:
java.awt.Font f =...;
Font font = FontFactory.getFont(f.getName(),BaseFont.IDENTITY_H)
I don't understand why with BaseFont.WINANSI it doesn't work. Winansi is the standard Windows Cp1252 character set, that one used by my JVM. So, if the char is correctly displayed in Java, why it is not the case for PDF?
You can escape them according to the unicode escape sequence defined in the java language specification. See http://java.sun.com/docs/books/jls/first_edition/html/3.doc.html
If you are using IntelliJ IDEA for your code you can download the StringManipulation plugin, that does the escapes for you. In the settings of IDEA you can also set the "Transparent native-to-ascii conversion" checkbox under File encodings, and this should help do the trick.
square in pdf file by iText:
BaseFont bf = BaseFont.createFont("c:/windows/fonts/arialbd.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
question.add(new Phrase("\u25A1", new Font(bf, 26)));
You can see a pdf file exemple here