Add PB type
This commit is contained in:
		
							parent
							
								
									5a57469f1c
								
							
						
					
					
						commit
						4f29b5c778
					
				@ -22,7 +22,7 @@ namespace Txt2Bib.Records
 | 
			
		||||
            a = a.Trim();
 | 
			
		||||
            var s = a.Split(' ');
 | 
			
		||||
            return s.Length > 1 ? 
 | 
			
		||||
                $"{s[1]} {s[0][0]}{s[0][1..].ToLowerInvariant()}" : a;
 | 
			
		||||
                $"{s[1]} {s[0][0]}{s[0][1..].ToLower()}" : a;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        protected string CreatePages(string pages)
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@ namespace Txt2Bib
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class Text2Bib
 | 
			
		||||
    {
 | 
			
		||||
        private readonly string[] _citTypes = { "J", "B", "C", "P" };
 | 
			
		||||
        private readonly string[] _citTypes = { "J", "B", "C", "P", "PB" };
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// Generate single .bib file from input text files
 | 
			
		||||
@ -85,6 +85,7 @@ namespace Txt2Bib
 | 
			
		||||
                {
 | 
			
		||||
                    "J" => new Article().Convert(lines),
 | 
			
		||||
                    "B" => new Book().Convert(lines),
 | 
			
		||||
                    "PB" => new Book().Convert(lines),
 | 
			
		||||
                    "C" => new Chapter().Convert(lines),
 | 
			
		||||
                    "P" => new Proceedings().Convert(lines),
 | 
			
		||||
                    _ => ""
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@
 | 
			
		||||
    <TargetFramework>net6.0-windows</TargetFramework>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <UseWPF>true</UseWPF>
 | 
			
		||||
    <Version>0.1.9</Version>
 | 
			
		||||
    <Version>0.2.0</Version>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user