From IDMLWiki
10.6.2 線種
InDesignドキュメントで使われる線種は、IDMLパッケージではGraphics.xmlファイルの<StrokeStyle>、<DashedStrokeStyle>、<DottedStrokeStyle>および<StripedStrokeStyle>エレメントで表されます。
スキーマの例64 StrokeStyle
StrokeStyle_Object = element StrokeStyle{ attribute Self { xsd:string }, attribute Name { xsd:string }}
表70 属性としてのStrokeStyleプロパティ
| 名前 |
値 |
必須 |
説明 |
| Name |
string |
○ |
線種の名前 |
IDMLの例62 デフォルトのStrokeStyle
<StrokeStyle Self="StrokeStyle\ Triple_Stroke" Name="$ID/Triple_Stroke"/>
<StrokeStyle Self="StrokeStyle\ ThickThinThick" Name="$ID/ThickThinThick"/>
<StrokeStyle Self="StrokeStyle\ ThinThickThin" Name="$ID/ThinThickThin"/>
<StrokeStyle Self="StrokeStyle\ ThickThick" Name="$ID/ThickThick"/>
<StrokeStyle Self="StrokeStyle\ ThickThin" Name="$ID/ThickThin"/>
<StrokeStyle Self="StrokeStyle\ ThinThick" Name="$ID/ThinThick"/>
<StrokeStyle Self="StrokeStyle\ ThinThin" Name="$ID/ThinThin"/>
<StrokeStyle Self="StrokeStyle\ Japanese Dots" Name="$ID/Japanese Dots"/>
<StrokeStyle Self="StrokeStyle\ White Diamond" Name="$ID/White Diamond"/>
<StrokeStyle Self="StrokeStyle\ Left Slant Hash" Name="$ID/Left Slant Hash"/>
<StrokeStyle Self="StrokeStyle\ Right Slant Hash" Name="$ID/Right Slant Hash"/>
<StrokeStyle Self="StrokeStyle\ Straight Hash" Name="$ID/Straight Hash"/>
<StrokeStyle Self="StrokeStyle\ Wavy" Name="$ID/Wavy"/>
<StrokeStyle Self="StrokeStyle\ Canned Dotted" Name="$ID/Canned Dotted"/>
<StrokeStyle Self="StrokeStyle\ Canned Dashed 3x2" Name="$ID/Canned Dashed 3x2"/>
<StrokeStyle Self="StrokeStyle\ Canned Dashed 4x4" Name="$ID/Canned Dashed 4x4"/>
<StrokeStyle Self="StrokeStyle\ Dashed" Name="$ID/Dashed"/>
<StrokeStyle Self="StrokeStyle\ Solid" Name="$ID/Solid"/>
<StrokeStyle>エレメントには、デフォルトの線種のみが表されます。すべてのカスタム線種は<DashedStrokeStyle>、<DottedStrokeStyle>または<StripedStrokeStyle>エレメントで表されます。上記のデフォルトの線種名には、すべて接頭辞「$ID」がついており、インストールされたアプリケーションのロケールによって、線が変わるということです。デフォルトの線種については、InDesignのオンラインヘルプを参照してください。
図50 InDesignの線種
スキーマの例65 DashedStrokeStyle
DashedStrokeStyle_Object = element DashedStrokeStyle{ attribute Self { xsd:string }, attribute DashArray{ list { xsd:double * } }?, attribute StrokeCornerAdjustment{ StrokeCornerAdjustment_EnumValue }?, attribute EndCap{ EndCap_EnumValue }?, attribute Name { xsd:string }}
表71 属性としてのDashedStrokeStyle
| 名前 |
値 |
必須 |
説明 |
| DashArray |
doubles(スペース区切りのリスト) |
|
線分の線と間隔のパターン。[線の長さ1, 間隔1, 線の長さ2, 間隔2,...]の形式で、ポイントで指定。(値は10まで)このパターンがパスに沿って繰り返される。線と間隔の正確な長さは、StrokeCornerAdjustment属性の値に影響される |
| EndCap |
EndCap_EnumValue |
|
線端の形状。ButtEndCap、RoundEndCapまたはProjectingEndCap。これらの線端についてはInDesignのオンラインヘルプを参照 |
| Name |
string |
|
線分の名前 |
| StrokeCornerAdjustment |
StrokeCornerAdjustment_EnumValue |
|
角。None、DashesまたはDashesAndGaps。角の設定についてはInDesignのオンラインヘルプを参照 |
IDMLの例63 DashedStrokeStyle
<DashedStrokeStyle Self="DashedStrokeStyle\ cExampleDashedStroke" DashArray=" 6 3 2 7 3 3" StrokeCornerAdjustment=" DashesAndGaps" EndCap=" ButtEndCap" Name="ExampleDashedStroke"/>
図51 線分
スキーマの例66 DottedStrokeStyle
DottedStrokeStyle_Object = element DottedStrokeStyle{ attribute Self { xsd:string }, attribute DotArray{ list { xsd:double * } }?, attribute StrokeCornerAdjustment{ StrokeCornerAdjustment_EnumValue }?, attribute Name { xsd:string }}
表72 属性としてのDottedStrokeStyleプロパティ
| 名前 |
値 |
必須 |
説明 |
| DotArray |
doubles(スペース区切りのリスト) |
|
パターンの長さ。ポイントで指定。(点の直径は線幅による)このパターンがパスに沿って繰り返される。点の間隔の正確な長さは、StrokeCornerAdjustment属性の値に影響される |
| Name |
string |
|
点線の名前 |
| StrokeCornerAdjustment |
StrokeCornerAdjustment_EnumValue |
|
角。None、DashesまたはDashesAndGaps。角の設定についてはInDesignのオンラインヘルプを参照 |
IDMLの例64 DottedStrokeStyle
<DottedStrokeStyle Self="DottedStrokeStyle\ cExampleDottedStoke" DotArray=" 5.554054054054054 6.445945945945946" StrokeCornerAdjustment=" Gaps" Name="ExampleDottedStoke"/>
図52 点線
スキーマの例67 StripedStrokeStyle
StripedStrokeStyle_Object = element StripedStrokeStyle{ attribute Self { xsd:string }, attribute StripeArray{ list { xsd:double * } }?, attribute Name { xsd:string }}
表73 属性としてのStripedStrokeStyleプロパティ
| 名前 |
値 |
必須 |
説明 |
| Name |
string |
|
ストライプの名前 |
| StripeArray |
double(スペース区切りのリスト) |
|
ストライプの幅と位置のパターン。各ストライプは、始点1、終点1、始点2、終点2の形式で始点と終点の組を、線幅のパーセント(0-100)で設定する。それぞれの値は、その前の値よりも大きくなければならない |
IDMLの例65 StripedStrokeStyle
<StripedStrokeStyle Self="StripedStrokeStyle\ cExampleStripedStroke" StripeArray=" 25 75" Name="ExampleStripedStroke"/>
図53 ストライプ