unishell.format.template.xml

<?xml version="1.0" encoding="utf-8"?>
<Configuration>
  <Controls>
  <Control>
    <Name>codepoint-string</Name>
   <CustomControl>
        <CustomEntries>
          <CustomEntry>
            <CustomItem>
              <Frame>
                <CustomItem>
                  <ExpressionBinding>
                    <PropertyName>_OriginatingString</PropertyName>
                  </ExpressionBinding>
                </CustomItem>
              </Frame>
            </CustomItem>
          </CustomEntry>
        </CustomEntries>
      </CustomControl>
      </Control>
    </Controls>
  <ViewDefinitions>
    <View>
      <Name>codepoint-table</Name>
      <ViewSelectedBy>
        <TypeName>unishell.codepoint</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <PropertyName>_OriginatingString</PropertyName>
        <CustomControlName>codepoint-string</CustomControlName>
      </GroupBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Label>Codepoint</Label>
          </TableColumnHeader>
          <TableColumnHeader>
            <Label>Name</Label>
          </TableColumnHeader>
          ##DEFAULT_ENCODING_TABLE_HEADERS##
          <TableColumnHeader>
            <Label>Value</Label>
            <Alignment>Center</Alignment>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <Alignment>Right</Alignment>
                <ScriptBlock>if($_.PSObject.Members['_Combiner']){$_._Combiner + $_.CodepointString.PadLeft(9)} else { $_.CodepointString }</ScriptBlock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>Name</PropertyName>
              </TableColumnItem>
              ##DEFAULT_ENCODING_TABLE_ITEMS##
              <TableColumnItem>
                <PropertyName>Value</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
     <View>
      <Name>codepoint-list</Name>
      <ViewSelectedBy>
        <TypeName>unishell.codepoint</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem><PropertyName>Value</PropertyName></ListItem>
              <ListItem><Label>Codepoint</Label><ScriptBlock>$_.CodepointString</ScriptBlock></ListItem>
              <ListItem><PropertyName>Name</PropertyName></ListItem>
              <ListItem><PropertyName>Block</PropertyName></ListItem>
              <ListItem><PropertyName>Plane</PropertyName></ListItem>
              <ListItem><PropertyName>UnicodeVersion</PropertyName></ListItem>
              <ListItem><PropertyName>Script</PropertyName></ListItem>
              <ListItem><PropertyName>LineBreakClass</PropertyName></ListItem>
              <ListItem><PropertyName>Category</PropertyName></ListItem>
              <ListItem><PropertyName>CanonicalCombiningClasses</PropertyName></ListItem>
              <ListItem><PropertyName>BidiCategory</PropertyName></ListItem>
              <ListItem><PropertyName>DecompositionMapping</PropertyName></ListItem>
              <ListItem><PropertyName>DecimalDigitValue</PropertyName></ListItem>
              <ListItem><PropertyName>DigitValue</PropertyName></ListItem>
              <ListItem><PropertyName>NumericValue</PropertyName></ListItem>
              <ListItem><PropertyName>Mirrored</PropertyName></ListItem>
              <ListItem><Label>UppercaseMapping</Label><ScriptBlock>'U+' + $_.UppercaseMapping.ToString('X4')</ScriptBlock></ListItem>
              <ListItem><Label>LowercaseMapping</Label><ScriptBlock>'U+' + $_.LowercaseMapping.ToString('X4')</ScriptBlock></ListItem>
              <ListItem><Label>TitlecaseMapping</Label><ScriptBlock>'U+' + $_.TitlecaseMapping.ToString('X4')</ScriptBlock></ListItem>
              ##ENCODING_LIST_ITEMS##
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
  </ViewDefinitions>
</Configuration>