Skip to content

Instantly share code, notes, and snippets.

@kikuchan
Created June 19, 2012 07:13
Show Gist options
  • Save kikuchan/2952740 to your computer and use it in GitHub Desktop.
Save kikuchan/2952740 to your computer and use it in GitHub Desktop.
xpdf outline japanizer - xpdf しおり日本語化
--- xpdf/XPDFApp.cc 2011-08-16 06:08:53.000000000 +0900
+++ xpdf/XPDFApp.cc 2012-06-19 15:48:43.000000000 +0900
@@ -36,8 +36,8 @@
static String fallbackResources[] = {
"*.zoomComboBox*fontList: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1",
- "*XmTextField.fontList: -*-courier-medium-r-normal--12-*-*-*-*-*-iso8859-1",
- "*.fontList: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1",
+ "*XmTextField.fontList: -misc-fixed-medium-r-*-*-14-*-*-*-*-*-iso10646-1:80",
+ "*.fontList: -misc-fixed-medium-r-*-*-14-*-*-*-*-*-iso10646-1:80",
"*XmTextField.translations: #override\\n"
" Ctrl<Key>a:beginning-of-line()\\n"
" Ctrl<Key>b:backward-character()\\n"
@@ -125,6 +127,7 @@
#endif
XPDFApp::XPDFApp(int *argc, char *argv[]) {
+ XtSetLanguageProc( NULL, NULL, NULL);
appShell = XtAppInitialize(&appContext, xpdfAppName, xOpts, nXOpts,
argc, argv, fallbackResources, NULL, 0);
display = XtDisplay(appShell);
--- xpdf/XPDFViewer.cc 2012-06-19 15:49:09.000000000 +0900
+++ xpdf/XPDFViewer.cc 2012-06-19 15:40:24.000000000 +0900
@@ -2729,7 +2729,7 @@
// create the new labels
items = core->getDoc()->getOutline()->getItems();
if (items && items->getLength() > 0) {
- enc = new GString("Latin1");
+ enc = new GString("EUC-JP");
uMap = globalParams->getUnicodeMap(enc);
delete enc;
setupOutlineItems(items, NULL, uMap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment