示例#1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Sets the format of a file name for USFM export.
 /// </summary>
 /// <param name="filePrefix">The file prefix.</param>
 /// <param name="fileScheme">The file scheme format.</param>
 /// <param name="fileSuffix">The file suffix.</param>
 /// <param name="fileExtension">The file extension.</param>
 /// ------------------------------------------------------------------------------------
 public FileNameFormat(string filePrefix, SchemeFormat fileScheme, string fileSuffix,
                       string fileExtension)
 {
     m_filePrefix    = filePrefix;
     m_schemeFormat  = fileScheme;
     m_fileSuffix    = fileSuffix;
     m_fileExtension = fileExtension;
 }
示例#2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets the scheme format in a format that can be presented in the User Interface (this
        /// is also the format Paratext uses internally).
        /// </summary>
        /// <param name="markup">The markup.</param>
        /// <param name="scheme">The scheme.</param>
        /// ------------------------------------------------------------------------------------
        public static string GetUiSchemeFormat(MarkupType markup, SchemeFormat scheme)
        {
            string mattBookNum = (markup == MarkupType.Paratext) ? "41" : "40";

            switch (scheme)
            {
            default:
            case SchemeFormat.NNBBB:
                return(mattBookNum + "MAT");

            case SchemeFormat.BBB:
                return("MAT");

            case SchemeFormat.NN:
                return(mattBookNum);
            }
        }
示例#3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Gets the scheme format in a format that can be presented in the User Interface (this
		/// is also the format Paratext uses internally).
		/// </summary>
		/// <param name="markup">The markup.</param>
		/// <param name="scheme">The scheme.</param>
		/// ------------------------------------------------------------------------------------
		public static string GetUiSchemeFormat(MarkupType markup, SchemeFormat scheme)
		{
			string mattBookNum = (markup == MarkupType.Paratext) ? "41" : "40";
			switch (scheme)
			{
				default:
				case SchemeFormat.NNBBB:
					return mattBookNum + "MAT";
				case SchemeFormat.BBB:
					return "MAT";
				case SchemeFormat.NN:
					return mattBookNum;
			}
		}
示例#4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Sets the format of a file name for USFM export.
		/// </summary>
		/// <param name="filePrefix">The file prefix.</param>
		/// <param name="fileScheme">The file scheme format.</param>
		/// <param name="fileSuffix">The file suffix.</param>
		/// <param name="fileExtension">The file extension.</param>
		/// ------------------------------------------------------------------------------------
		public FileNameFormat(string filePrefix, SchemeFormat fileScheme, string fileSuffix,
			string fileExtension)
		{
			m_filePrefix = filePrefix;
			m_schemeFormat = fileScheme;
			m_fileSuffix = fileSuffix;
			m_fileExtension = fileExtension;
		}