⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arabicshaping.html

📁 java编程java编程java编程java编程java编程java编程java编程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).  The initial state at the start of the text is assumed to be not an Arabic, letter, so European digits at the start of the text will not change. Compare to DIGITS_ALEN2AN_INIT_AL.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGITS_EN2AN_INIT_LR">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGITS_EN2AN_INIT_AL"><!-- --></A><H3>
DIGITS_EN2AN_INIT_AL</H3>
<PRE>
public static final int <B>DIGITS_EN2AN_INIT_AL</B></PRE>
<DL>
<DD>Digit shaping option: Replace European digits (U+0030...U+0039) by Arabic-Indic digits if the most recent strongly directional character is an Arabic letter (its Bidi direction value is RIGHT_TO_LEFT_ARABIC).  The initial state at the start of the text is assumed to be an Arabic, letter, so European digits at the start of the text will change. Compare to DIGITS_ALEN2AN_INT_LR.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGITS_EN2AN_INIT_AL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGITS_RESERVED"><!-- --></A><H3>
DIGITS_RESERVED</H3>
<PRE>
private static final int <B>DIGITS_RESERVED</B></PRE>
<DL>
<DD>Not a valid option value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGITS_RESERVED">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGITS_MASK"><!-- --></A><H3>
DIGITS_MASK</H3>
<PRE>
public static final int <B>DIGITS_MASK</B></PRE>
<DL>
<DD>Bit mask for digit shaping options.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGITS_MASK">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGIT_TYPE_AN"><!-- --></A><H3>
DIGIT_TYPE_AN</H3>
<PRE>
public static final int <B>DIGIT_TYPE_AN</B></PRE>
<DL>
<DD>Digit type option: Use Arabic-Indic digits (U+0660...U+0669).
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGIT_TYPE_AN">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGIT_TYPE_AN_EXTENDED"><!-- --></A><H3>
DIGIT_TYPE_AN_EXTENDED</H3>
<PRE>
public static final int <B>DIGIT_TYPE_AN_EXTENDED</B></PRE>
<DL>
<DD>Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGIT_TYPE_AN_EXTENDED">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="DIGIT_TYPE_MASK"><!-- --></A><H3>
DIGIT_TYPE_MASK</H3>
<PRE>
public static final int <B>DIGIT_TYPE_MASK</B></PRE>
<DL>
<DD>Bit mask for digit type options.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.DIGIT_TYPE_MASK">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="IRRELEVANT"><!-- --></A><H3>
IRRELEVANT</H3>
<PRE>
private static final int <B>IRRELEVANT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.IRRELEVANT">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="LAMTYPE"><!-- --></A><H3>
LAMTYPE</H3>
<PRE>
private static final int <B>LAMTYPE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.LAMTYPE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="ALEFTYPE"><!-- --></A><H3>
ALEFTYPE</H3>
<PRE>
private static final int <B>ALEFTYPE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.ALEFTYPE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="LINKR"><!-- --></A><H3>
LINKR</H3>
<PRE>
private static final int <B>LINKR</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.LINKR">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="LINKL"><!-- --></A><H3>
LINKL</H3>
<PRE>
private static final int <B>LINKL</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.LINKL">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="LINK_MASK"><!-- --></A><H3>
LINK_MASK</H3>
<PRE>
private static final int <B>LINK_MASK</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.lowagie.text.pdf.ArabicShaping.LINK_MASK">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="irrelevantPos"><!-- --></A><H3>
irrelevantPos</H3>
<PRE>
private static final int[] <B>irrelevantPos</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="convertLamAlef"><!-- --></A><H3>
convertLamAlef</H3>
<PRE>
private static final char[] <B>convertLamAlef</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="convertNormalizedLamAlef"><!-- --></A><H3>
convertNormalizedLamAlef</H3>
<PRE>
private static final char[] <B>convertNormalizedLamAlef</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="araLink"><!-- --></A><H3>
araLink</H3>
<PRE>
private static final int[] <B>araLink</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="presLink"><!-- --></A><H3>
presLink</H3>
<PRE>
private static final int[] <B>presLink</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="convertFEto06"><!-- --></A><H3>
convertFEto06</H3>
<PRE>
private static int[] <B>convertFEto06</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="shapeTable"><!-- --></A><H3>
shapeTable</H3>
<PRE>
private static final int[][][] <B>shapeTable</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="ArabicShaping(int)"><!-- --></A><H3>
ArabicShaping</H3>
<PRE>
public <B>ArabicShaping</B>(int&nbsp;options)</PRE>
<DL>
<DD>Construct ArabicShaping using the options flags. The flags are as follows:<br> 'LENGTH' flags control whether the text can change size, and if not, how to maintain the size of the text when LamAlef ligatures are  formed or broken.<br> 'TEXT_DIRECTION' flags control whether the text is read and written in visual order or in logical order.<br> 'LETTERS_SHAPE' flags control whether conversion is to or from presentation forms.<br> 'DIGITS' flags control whether digits are shaped, and whether from European to Arabic-Indic or vice-versa.<br> 'DIGIT_TYPE' flags control whether standard or extended Arabic-Indic digits are used when performing digit conversion.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="shape(char[], int, int, char[], int, int)"><!-- --></A><H3>
shape</H3>
<PRE>
public int <B>shape</B>(char[]&nbsp;source,                 int&nbsp;sourceStart,                 int&nbsp;sourceLength,                 char[]&nbsp;dest,                 int&nbsp;destStart,                 int&nbsp;destSize)</PRE>
<DL>
<DD>Convert a range of text in the source array, putting the result  into a range of text in the destination array, and return the number of characters written.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - An array containing the input text<DD><CODE>sourceStart</CODE> - The start of the range of text to convert<DD><CODE>sourceLength</CODE> - The length of the range of text to convert<DD><CODE>dest</CODE> - The destination array that will receive the result.   It may be <code>NULL</code> only if  <code>destSize</code> is 0.<DD><CODE>destStart</CODE> - The start of the range of the destination buffer to use.<DD><CODE>destSize</CODE> - The size (capacity) of the destination buffer.   If <code>destSize</code> is 0, then no output is produced,   but the necessary buffer size is returned ("preflighting").  This   does not validate the text against the options, for example,    if letters are being unshaped, and spaces are being consumed   following lamalef, this will not detect a lamalef without a    corresponding space.  An error will be thrown when the actual   conversion is attempted.<DT><B>Returns:</B><DD>The number of chars written to the destination buffer.   If an error occurs, then no output was written, or it may be   incomplete.</DL>
</DD>
</DL>
<HR>

<A NAME="shape(char[], int, int)"><!-- --></A><H3>
shape</H3>
<PRE>
public void <B>shape</B>(char[]&nbsp;source,                  int&nbsp;start,                  int&nbsp;length)</PRE>
<DL>
<DD>Convert a range of text in place.  This may only be used if the Length option does not grow or shrink the text.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - An array containing the input text<DD><CODE>start</CODE> - The start of the range of text to convert<DD><CODE>length</CODE> - The length of the range of text to convert</DL>
</DD>
</DL>
<HR>

<A NAME="shape(java.lang.String)"><!-- --></A><H3>
shape</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>shape</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>&nbsp;text)</PRE>
<DL>
<DD>Convert a string, returning the new string.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The converted string.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;rhs)</PRE>
<DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -