This commit is contained in:
parent
3a0c591623
commit
b94dad3cf2
175
PROMS/Volian.Utils.Library/CvtFont/CvtFont.cs
Normal file
175
PROMS/Volian.Utils.Library/CvtFont/CvtFont.cs
Normal file
@ -0,0 +1,175 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
|
||||
namespace CvtFont
|
||||
{
|
||||
// <Font Family="Prestige Elite Tall" Size="10" Style="NONE" />
|
||||
|
||||
public static class CvtFont
|
||||
{
|
||||
private static string [] OldNames = {
|
||||
"Elite",
|
||||
"Pica",
|
||||
"LnPrn",
|
||||
"Condense",
|
||||
"SanSerif",
|
||||
"Pica12",
|
||||
"Proportional",
|
||||
"Propt12",
|
||||
"HvlPt18",
|
||||
"HvlPt25",
|
||||
"SpecialChars",
|
||||
"Pt14",
|
||||
"SanSerif14",
|
||||
"SanSerif17",
|
||||
"HvlPt12",
|
||||
"Narrator",
|
||||
"MedUpUnivers",
|
||||
"LgUpMed16",
|
||||
"Propt10",
|
||||
"Lg1275Hp4Si",
|
||||
"HvlPt10",
|
||||
"HvlPt8",
|
||||
"HvlPt14",
|
||||
"SanSerif25",
|
||||
"EyeChart",
|
||||
"Times11",
|
||||
"SansCond",
|
||||
"BigScript"
|
||||
};
|
||||
private static string[] NewXML = {
|
||||
"<Font Family=\"Prestige Elite Tall\" Size=\"10\"/>",
|
||||
"<Font Family=\"Courier New\" Size=\"12\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"7\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"7\"/>",
|
||||
"<Font Family=\"Letter Gothic\" Size=\"10\"/>",
|
||||
"<Font Family=\"Courier New\" Size=\"12\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"18\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"11\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"18\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"25\"/>",
|
||||
"<Font Family=\"VolianDraw XXXXXX\" Size=\"12\"/>",
|
||||
"<Font Family=\"Letter Gothic\" Size=\"12\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"14\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"17\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"12\"/>",
|
||||
"<Font Family=\"Gothic Ultra\" Size=\"12\"/>",
|
||||
"<Font Family=\"NA\" Size=\"na\"/>",
|
||||
"<Font Family=\"Letter Gothic Tall\" Size=\"7\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"0\"/>",
|
||||
"<Font Family=\"Letter Gothic Tall\" Size=\"10\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"10\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"8\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"14\"/>",
|
||||
"<Font Family=\"Arial\" Size=\"25\"/>",
|
||||
"<Font Family=\"Gothic Ultra\" Size=\"14\"/>",
|
||||
"<Font Family=\"Times New Roman\" Size=\"11\"/>",
|
||||
"<Font Family=\"Letter Gothic\" Size=\"7\"/>",
|
||||
"<Font Family=\"VolianScript\" Size=\"32\"/>"
|
||||
};
|
||||
private static string[] NewFamily = {
|
||||
"Prestige Elite Tall",
|
||||
"Courier New",
|
||||
"Times New Roman",
|
||||
"Times New Roman",
|
||||
"Letter Gothic",
|
||||
"Courier New",
|
||||
"Arial",
|
||||
"Arial",
|
||||
"Times New Roman",
|
||||
"Times New Roman",
|
||||
"VolianDraw XXXXXX",
|
||||
"Letter Gothic",
|
||||
"Arial",
|
||||
"Arial",
|
||||
"Times New Roman",
|
||||
"Gothic Ultra",
|
||||
"NA",
|
||||
"Letter Gothic Tall",
|
||||
"Arial",
|
||||
"Letter Gothic Tall",
|
||||
"Times New Roman",
|
||||
"Times New Roman",
|
||||
"Times New Roman",
|
||||
"Arial",
|
||||
"Gothic Ultra",
|
||||
"Times New Roman",
|
||||
"Letter Gothic",
|
||||
"VolianScript"
|
||||
};
|
||||
private static int[] NewSize = {
|
||||
10,
|
||||
12,
|
||||
7,
|
||||
7,
|
||||
10,
|
||||
12,
|
||||
18,
|
||||
11,
|
||||
18,
|
||||
25,
|
||||
12,
|
||||
12,
|
||||
14,
|
||||
17,
|
||||
12,
|
||||
12,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
10,
|
||||
10,
|
||||
8,
|
||||
14,
|
||||
25,
|
||||
14,
|
||||
11,
|
||||
7,
|
||||
32
|
||||
};
|
||||
|
||||
|
||||
private static Dictionary<string, string> OldToNewStrings=null;
|
||||
public static string ConvertToString(string oldstr)
|
||||
{
|
||||
if (OldToNewStrings == null) InitializeDictionary();
|
||||
return OldToNewStrings[oldstr];
|
||||
}
|
||||
|
||||
public static string ConvertToFamily(string oldstr)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (string str in OldNames)
|
||||
{
|
||||
if (str == oldstr) return NewFamily[i];
|
||||
i++;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public static int ConvertToSize(string oldstr)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (string str in OldNames)
|
||||
{
|
||||
if (str == oldstr) return NewSize[i];
|
||||
i++;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
//public static XmlElement ConvertToXML(string oldstr)
|
||||
//{
|
||||
// if (OldToNewStrings == null) InitializeDictionary();
|
||||
// XmlElement xml = new XmlElement();
|
||||
// xml.InnerXml = OldToNewStrings[oldstr];
|
||||
// return xml;
|
||||
//}
|
||||
private static void InitializeDictionary()
|
||||
{
|
||||
int i = 0;
|
||||
foreach (string str in OldNames)
|
||||
OldToNewStrings.Add(str, NewXML[i]);
|
||||
}
|
||||
}
|
||||
}
|
55
PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj
Normal file
55
PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj
Normal file
@ -0,0 +1,55 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{652EB5F6-18DD-4F22-9C0B-62EB46613C4D}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CvtFont</RootNamespace>
|
||||
<AssemblyName>CvtFont</AssemblyName>
|
||||
<SccProjectName>
|
||||
</SccProjectName>
|
||||
<SccLocalPath>
|
||||
</SccLocalPath>
|
||||
<SccAuxPath>
|
||||
</SccAuxPath>
|
||||
<SccProvider>
|
||||
</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CvtFont.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
10
PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj.vspscc
Normal file
10
PROMS/Volian.Utils.Library/CvtFont/CvtFont.csproj.vspscc
Normal file
@ -0,0 +1,10 @@
|
||||
""
|
||||
{
|
||||
"FILE_VERSION" = "9237"
|
||||
"ENLISTMENT_CHOICE" = "NEVER"
|
||||
"PROJECT_FILE_RELATIVE_PATH" = ""
|
||||
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("CvtFont")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Volian Enterprises, Inc.")]
|
||||
[assembly: AssemblyProduct("CvtFont")]
|
||||
[assembly: AssemblyCopyright("Copyright © Volian Enterprises, Inc. 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("d2266793-0f12-4f71-bbd4-0a1617554b27")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
65
PROMS/fmtxml/Format, Genmac To XML, SVG.csproj
Normal file
65
PROMS/fmtxml/Format, Genmac To XML, SVG.csproj
Normal file
@ -0,0 +1,65 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{68A28293-001C-4726-AA1A-7783E0FA6439}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<NoStandardLibraries>false</NoStandardLibraries>
|
||||
<AssemblyName>Format, Genmac To XML, SVG</AssemblyName>
|
||||
<RootNamespace>Format__Genmac_To_XML__SVG</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>.\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>.\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="c1.c1pdf, Version=1.1.20052.40, Culture=neutral, PublicKeyToken=bc8d9c59cf1b601f" />
|
||||
<Reference Include="C1.Common, Version=1.0.20031.116, Culture=neutral, PublicKeyToken=e272bb32d11b1948" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
<Compile Include="EntireFormat.cs" />
|
||||
<Compile Include="FmtFileToXml.cs" />
|
||||
<Compile Include="FmtToXml.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="GenToXml.cs" />
|
||||
<Compile Include="GenXmlToSvg.cs" />
|
||||
<Compile Include="SvgToPdf.cs" />
|
||||
<Compile Include="XmlToPdf.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Volian.Utils.Library\CvtFont\CvtFont.csproj">
|
||||
<Project>{652EB5F6-18DD-4F22-9C0B-62EB46613C4D}</Project>
|
||||
<Name>CvtFont</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio AllowExistingFolder="true" />
|
||||
</ProjectExtensions>
|
||||
</Project>
|
10
PROMS/fmtxml/Format, Genmac To XML, SVG.csproj.vspscc
Normal file
10
PROMS/fmtxml/Format, Genmac To XML, SVG.csproj.vspscc
Normal file
@ -0,0 +1,10 @@
|
||||
""
|
||||
{
|
||||
"FILE_VERSION" = "9237"
|
||||
"ENLISTMENT_CHOICE" = "NEVER"
|
||||
"PROJECT_FILE_RELATIVE_PATH" = ""
|
||||
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user