Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bl_i18n_utils/utils_rtl.py
| Context not available. | |||||
| # Windows or OsX. | # Windows or OsX. | ||||
| # This uses ctypes, as there is no py3 binding for fribidi currently. | # This uses ctypes, as there is no py3 binding for fribidi currently. | ||||
| # This implies you only need the compiled C library to run it. | # This implies you only need the compiled C library to run it. | ||||
| # Finally, note that it handles some formating/escape codes (like | # Finally, note that it handles some formatting/escape codes (like | ||||
| # \", %s, %x12, %.4f, etc.), protecting them from ugly (evil) fribidi, | # \", %s, %x12, %.4f, etc.), protecting them from ugly (evil) fribidi, | ||||
| # which seems completely unaware of such things (as unicode is...). | # which seems completely unaware of such things (as unicode is...). | ||||
| Context not available. | |||||
| ##### Kernel processing funcs. ##### | ##### Kernel processing funcs. ##### | ||||
| def protect_format_seq(msg): | def protect_format_seq(msg): | ||||
| """ | """ | ||||
| Find some specific escaping/formating sequences (like \", %s, etc., | Find some specific escaping/formatting sequences (like \", %s, etc., | ||||
| and protect them from any modification! | and protect them from any modification! | ||||
| """ | """ | ||||
| # LRM = "\u200E" | # LRM = "\u200E" | ||||
| Context not available. | |||||