![]() | InDesign SDK 20.5 |
#include <TxtExpUtils.h>
Public Types | |
| enum | Modifier { None, Dakuten, Handakuten } |
Static Public Member Functions | |
| static ITxtExpFileWriter * | QueryTxtExpFileWriter (ITxtExpFileWriter::Encoding encoding) |
| static IIntData * | GetEncodingIntData (bool16 bRelease=kFalse) |
| static textchar | HankakuToZenkaku (const textchar tc, const TxtExpUtils::Modifier modifier=TxtExpUtils::None) |
| static textchar | ZenkakuToHankaku (const textchar tc, TxtExpUtils::Modifier &modifier) |
Static Public Attributes | |
| static const int32 | kHankakuColumn = 0 |
| static const int32 | kZenkakuColumn = 1 |
| static const int32 | kNumKatakana = 94 |
| static const int32 | kKatakanaNotFound = -1 |
TxtExpUtils Implements various utility functions that help in the process of importing text files, as featured in the TextImportFilter.
Specifies a type of katakana modifier. The following sounds contain a dakuten: ga, gi, gu, ge, go, za, zi, zu, ze, zo, da, di, zu, de, do, ba, bi, bu, be, bo vu (not very common) The following sounds contain a han-dakuten: pa, pi, pu, pe, po
| static |
Gets the IntData pointer for the encoding option so that the dialog and the filter could both set and get the same IntData interface. The code that first calls GetEncodingIntData should release it when all done. (See TxtExpFilter::TxtExpFilter() and TxtExpFilter::~TxtExpFilter().)
| bRelease | Set to kTrue if you want to release the IIntData pointer. Defaults to kFalse. |
| static |
Converts a Hankaku (single-byte) katakana char to its Zenkaku (dual-byte) counterpart.
| tc | Textchar containing the single-byte code for the Hankaku katakana. |
| modifier | Specifies whether the hankaku character has a modifier or not. See typedef Modifier. If modifier is other than None, then tc's HIBYTE is ignored. |
| static |
Obtains the actual ITxtExpFileWriter interface for the corresponding encoding.
| encoding | The encoding for which you want the ITxtExpFileWriter implementation. See ITxtExpFileWriter::Encoding. |
| static |
Converts a Zenkaku (dual-byte) katakana char to its Hankaku (single-byte) counterpart.
| tc | Textchar containing the dual-byte code for the Zenkaku katakana. If the textchar has a modifier, then the high-order byte contains the actual modifier character. (dakuten or handakuten) |
| modifier | (return by reference) Indicates whether the returned textchar has a modifier. |
| static |
Constant for the hankaku column in the lookup table.
| static |
Constant that signifies that the character was not found in the lookup table.
| static |
Constant for the number of katakana entries in the lookup table.
| static |
Constant for the zenkaku column in the lookup table.