Exemplo n.º 1
0
        public void Apply_DefaultOptions_Ok(string greek, string roman)
        {
            GrcRomanizerTextFilter filter = new GrcRomanizerTextFilter();
            StringBuilder          text   = new StringBuilder(greek);

            filter.Apply(text);
            Assert.Equal(roman, text.ToString());
        }
Exemplo n.º 2
0
        public void Apply_AsciiOnly_Ok(string greek, string roman)
        {
            GrcRomanizerTextFilter filter = new GrcRomanizerTextFilter();

            filter.Configure(new GrcRomanizerOptions
            {
                TargetTable = "$GtrTarget7"
            });
            StringBuilder text = new StringBuilder(greek);

            filter.Apply(text);
            Assert.Equal(roman, text.ToString());
        }
Exemplo n.º 3
0
        public void Apply_Pinakes_Ok(string greek, string roman)
        {
            GrcRomanizerTextFilter filter = new GrcRomanizerTextFilter();

            filter.Configure(new GrcRomanizerOptions
            {
                TargetTable          = "$GtrTarget7",
                KsiAsX               = true,
                KhiAsCh              = true,
                IncludeIpogegrammeni = false,
                GammaPlusVelarAsN    = false,
                HAfterRR             = true,
                ConvertPunctuation   = true
            });
            StringBuilder text = new StringBuilder(greek);

            filter.Apply(text);
            Assert.Equal(roman, text.ToString());
        }