unishell.format.ps1xml
<?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> <TableColumnHeader> <Label>utf-8</Label> <Alignment>Right</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>utf-16</Label> <Alignment>Right</Alignment> </TableColumnHeader> <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> <TableColumnItem> <Alignment>Right</Alignment> <ScriptBlock>(($_.'utf-8' |%{ $_.ToString('X2') }) -join ' ').PadLeft(12)</ScriptBlock> </TableColumnItem> <TableColumnItem> <Alignment>Right</Alignment> <ScriptBlock>(($_.'utf-16' |%{ $_.ToString('X2') }) -join ' ').PadLeft(12)</ScriptBlock> </TableColumnItem> <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> <ListItem> <Label>utf-8</Label> <ScriptBlock>($_.'utf-8' |%{ $_.ToString('X2') }) -join ' '</ScriptBlock> </ListItem> <ListItem> <Label>utf-16</Label> <ScriptBlock>($_.'utf-16' |%{ $_.ToString('X2') }) -join ' '</ScriptBlock> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> </ViewDefinitions> </Configuration> |