icu

Are ICU resource bundles meant for message translation resources

眉间皱痕 提交于 2019-12-21 04:09:03
问题 I understand the localization part of ICU - date, time and currency formats, collation, etc. When it comes to message translation, I see people stating that ICU does not provide functionality for message translation - check for example this SOF question. However, when checking ICU docs, we find that it provides resources bundles, and the documentation does seem to hint to using them for message translation: In PHP intl documentation for example: Localized software products often require sets

Transliteration from Hindi to English on Android without using Google API

吃可爱长大的小学妹 提交于 2019-12-21 03:48:09
问题 I want to transliterate Hindi text into English in following way Hindi - " आपका स्वागत है " to English - " aapka swagat hain " I don't want to use Google's Translate API or any other translate API. If I use them it will end up giving me the translated version of my hindi text which is " Welcome ". Is there any Transliterate library which I can use in my Android code? I've heard of ICU but no luck in finding the procedure to use it in my code. 回答1: One potential way to solve the problem is to

ICU init failed: U_FILE_ACCESS_ERROR - when running swirl

对着背影说爱祢 提交于 2019-12-20 05:16:07
问题 I Keep getting this error whenever I library(swirl) : Error in inDL(x, as.logical(local), as.logical(now), ...) : ICU init failed: U_FILE_ACCESS_ERROR Error: package or namespace load failed for ‘swirl’ I have reinstalled multiple versions of R multiple times. Reinstalled RTools multiple times Reset path and registry to what they were a week before when swirl was still working Reinstalled Visual Studio and R Studio and still the same effect Would be awesome to know what more I can do to

Compiling ICU for Android - 'uint64_t' does not name a type

久未见 提交于 2019-12-19 09:02:13
问题 While attempting to cross-compile ICU using android-ndk-r7 in Linux, the following error occurs after configuration when I run 'make' __/android-ndk-r7/platforms/android-8/arch-arm/usr/include/sys/types.h:124: error: 'uint64_t' does not name a type This is triggered by the #include <sys/types.h> in icu/source/common/unicode/ptypes.h:25. It appears to be a non-icu issue in android-ndk-n7. In sys/types.h we see #ifdef __BSD_VISIBLE typedef unsigned char u_char; typedef unsigned short u_short;

C++ UTF-8 output with ICU

一个人想着一个人 提交于 2019-12-19 05:16:39
问题 I'm struggling to get started with the C++ ICU library. I have tried to get the simplest example to work, but even that has failed. I would just like to output a UTF-8 string and then go from there. Here is what I have: #include <unicode/unistr.h> #include <unicode/ustream.h> #include <iostream> int main() { UnicodeString s = UNICODE_STRING_SIMPLE("привет"); std::cout << s << std::endl; return 0; } Here is the output: $ g++ -I/sw/include -licucore -Wall -Werror -o icu_test main.cpp $ ./icu

Include ICU in Android NDK Project

亡梦爱人 提交于 2019-12-19 03:24:59
问题 I built a library in C++ that I want to include in my Android application using the NDK. However, my library needs to use ICU4C. I have been trying to compile ICU for Android, and I looked at a lot of questions here on SO, but I am still unable to get ICU compiled into .a files for Android. I'm not sure the best way to do this. Has anyone had success with ICU with the NDK? By the way, I was hoping to use ICU 51.2, unless there's a good reason to use an older version. 回答1: You can build ICU as

Enthought Canopy 1.1 giving error icui18n: cannot open shared object file: No such file or directory

只谈情不闲聊 提交于 2019-12-18 06:56:51
问题 I have tried to get enthought canopy and follow the procedure. However, when I tried to run ./canopy , it gave this error: Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)". I cannot sudo because I am using the university's supercomputing account, no permission to do so. Any advice? 回答1: You just need a copy of ICU installed on the system you are trying to run canopy on. You can do this by either installing it

Cross-compiled ICU4C does not work (all applications exit with code “1”)

元气小坏坏 提交于 2019-12-13 06:54:11
问题 I am experiencing a problem with ICU4C version 52. I cross compiled it for TI AM335x board using the toolchain provided by TI (SDK 6.00.00); my development machine is Ubuntu 12.04 LTS 32-bit. The problem is that when I deploy the library to my target platform and launch any tool (like icuinfo or even any application which rely on ICU, e.g. a QT application) then it exits with code 1 (and no output is produced). If I strace the command, I obtain the output you can find here. In other words, it

Deploy Gollum wiki with Engine Yard

半城伤御伤魂 提交于 2019-12-13 04:26:00
问题 Gollum is "A simple, Git-powered wiki with a sweet API and local frontend." It's hosted on GitHub: http://github.com/github/gollum Deploying my site to EngineYard is generating this error. Fetching gem metadata from https://rubygems.org/ Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. It seems to be an issue with installing an dependency called 'ICU'. I've installed ICU using the 'install unix package' button on the

Windows 10 - node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) error

ε祈祈猫儿з 提交于 2019-12-13 02:56:53
问题 An issue similar to this post: node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters) I get the same error message:"node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters" with the fresh node installation. It is a brand new computer with Windows 10 Pro system version 10.0.17763 Build 17763. I have tried installing version 10.16.0 LTS and version 12.6.0 current from node.js website. In both cases I have exactly the same error, does not