From 4718bf037f872b5de3683629f6c00b71bae3b71b Mon Sep 17 00:00:00 2001 From: Willem Date: Tue, 31 Dec 2024 17:02:41 +0100 Subject: [PATCH] Added source code data for binary and decimals --- .../org/x4o/o2o/fc18/FourCornerDotCake.java | 20 +- .../o2o/fc18/zero33/FCDotAMD0110DashA4.java | 54 ++ .../o2o/fc18/zero33/FCDotBMW0102DashD1.java | 43 ++ .../o2o/fc18/zero33/FCDotNCR1632Dash0F.java | 518 +----------------- 4 files changed, 112 insertions(+), 523 deletions(-) create mode 100644 nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotAMD0110DashA4.java create mode 100644 nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotBMW0102DashD1.java diff --git a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/FourCornerDotCake.java b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/FourCornerDotCake.java index c68e478..fb63e56 100644 --- a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/FourCornerDotCake.java +++ b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/FourCornerDotCake.java @@ -44,21 +44,26 @@ public enum FourCornerDotCake { // =========== Allow end-user select rendering of data per context - // Interim Byte Mode, embed raw 8 bit Data + /// Interim Byte Mode, embed raw 8 bit Data FC_IBM1616_D8(256, 256), /// Reserved for future data grams use - __RESERVED_DATAGRAMS(512, 1464-512), + __RESERVED_DATAGRAMS(512, 1452-512), - // Octal Character Encoding in Hinari 3 bit + /// Application Methodoums Decimals, normal decimal numbers 0-9 + FC_AMD0110_A4(1452,10), + /// Binary Model Word encoding for true and false + FC_BMW0102_D1(1462,2), + + /// Octal Character Encoding in Hinari 3 bit FC_OCE0801_H3(1464, 8), - // Octal Character Encoding in Hinari 6 bit + /// Octal Character Encoding in Hinari 6 bit FC_OCE0808_H6(1472, 64), - // Octal Character Encoding in Hinari 9 bit + /// Octal Character Encoding in Hinari 9 bit FC_OCE0864_H9(1536, 512), // =========== Allow big terminators to learn a computer math - /// New Counting Rods, Flags and shorthands. + /// New Counting Rods, Flags FC_NCR1632_0F(2048, 512), /// New Counting Rods, Optional prefix for terminator multiplier, biggest terminator is "2^(512*512)" which is very small. /// 0M + (1T*0M) + (1V*M0) @@ -72,7 +77,8 @@ public enum FourCornerDotCake { // =========== Allow FileName/Variable/Class/Method/etc/etc to spelled correctly in any language /// China Four Corner words with FIXED meaning for abstract translations, to make code without letters. - FC_WORDS(4096, 100000), // 4 or 5 decimals come from four corner index 0000.0 = 00000 = first word index = "head" = "亠" + /// 4 or 5 decimals come from four corner index 0000.0 = 00000 = first word index = "head" = "亠" + FC_WORDS(4096, 100000), /// Reserved four corner extra words __RESERVED_WORDS_EXT1(4096+100000, 131072-100000-4096), // fc end = 2^17-1 /// 50% mark, reserved for future use diff --git a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotAMD0110DashA4.java b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotAMD0110DashA4.java new file mode 100644 index 0000000..f26c15e --- /dev/null +++ b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotAMD0110DashA4.java @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2004-2014, Willem Cazander + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package org.x4o.o2o.fc18.zero33; + +import org.x4o.o2o.fc18.FourCornerDotCake; +import org.x4o.o2o.fc18.FourCornerDotCakePoint; + +/** + * "FC.AMD0110-A4" Four Corner Application Methodoums Decimals + * + * + * @author Willem Cazander + * @version 1.0 Dec 31, 2024 + */ +public enum FCDotAMD0110DashA4 implements FourCornerDotCakePoint { + /// Shorthand for zero + T001_NXX_001, + /// Shorthand for one + T009_NXX_001, + T009_NXX_002, + T009_NXX_003, + T009_NXX_004, + T009_NXX_005, + T009_NXX_006, + T009_NXX_007, + T009_NXX_008, + T009_NXX_009, + ; + + @Override + public int cakePoint() { + return FourCornerDotCake.FC_AMD0110_A4.getStart() + ordinal(); + } +} diff --git a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotBMW0102DashD1.java b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotBMW0102DashD1.java new file mode 100644 index 0000000..3e423ef --- /dev/null +++ b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotBMW0102DashD1.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2004-2014, Willem Cazander + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are permitted provided + * that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, this list of conditions and the + * following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and + * the following disclaimer in the documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package org.x4o.o2o.fc18.zero33; + +import org.x4o.o2o.fc18.FourCornerDotCake; +import org.x4o.o2o.fc18.FourCornerDotCakePoint; + +/** + * "FC.BMW0102-D1" Four Corner Binary Model Word encoding. + * + * @author Willem Cazander + * @version 1.0 Dec 31, 2024 + */ +public enum FCDotBMW0102DashD1 implements FourCornerDotCakePoint { + NXX_001, + NXX_002, + ; + + @Override + public int cakePoint() { + return FourCornerDotCake.FC_BMW0102_D1.getStart() + ordinal(); + } +} diff --git a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotNCR1632Dash0F.java b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotNCR1632Dash0F.java index 97bab48..6803998 100644 --- a/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotNCR1632Dash0F.java +++ b/nx01-x4o-o2o/src/main/java/org/x4o/o2o/fc18/zero33/FCDotNCR1632Dash0F.java @@ -26,529 +26,15 @@ import org.x4o.o2o.fc18.FourCornerDotCake; import org.x4o.o2o.fc18.FourCornerDotCakePoint; /** - * "FC.NCR1632-0F" Four Corner New Counting Rods optional flags and shorthands. + * "FC.NCR1632-0F" Four Corner New Counting Rods optional flags. * * @author Willem Cazander * @version 1.0 Dec 31, 2024 */ public enum FCDotNCR1632Dash0F implements FourCornerDotCakePoint { - /// Shorthand for zero - T001_NXX_001, - /// Shorthand for one - T009_NXX_001, - T009_NXX_002, - T009_NXX_003, - T009_NXX_004, - T009_NXX_005, - T009_NXX_006, - T009_NXX_007, - T009_NXX_008, - T009_NXX_009, - /// Reserved TODO: Check if we need 1PI/2PI/3PI/NaN minus in 4D and maybe replace math symbols from P6 to here.. - NXX_011, - NXX_012, - NXX_013, - NXX_014, - NXX_015, - NXX_016, - NXX_017, - NXX_018, - NXX_019, - NXX_020, - NXX_021, - NXX_022, - NXX_023, - NXX_024, - NXX_025, - NXX_026, - NXX_027, - NXX_028, - NXX_029, - NXX_030, - NXX_031, - NXX_032, - NXX_033, - NXX_034, - NXX_035, - NXX_036, - NXX_037, - NXX_038, - NXX_039, - NXX_040, - NXX_041, - NXX_042, - NXX_043, - NXX_044, - NXX_045, - NXX_046, - NXX_047, - NXX_048, - NXX_049, - NXX_050, - NXX_051, - NXX_052, - NXX_053, - NXX_054, - NXX_055, - NXX_056, - NXX_057, - NXX_058, - NXX_059, - NXX_060, - NXX_061, - NXX_062, - NXX_063, - NXX_064, - NXX_065, - NXX_066, - NXX_067, - NXX_068, - NXX_069, - NXX_070, - NXX_071, - NXX_072, - NXX_073, - NXX_074, - NXX_075, - NXX_076, - NXX_077, - NXX_078, - NXX_079, - NXX_080, - NXX_081, - NXX_082, - NXX_083, - NXX_084, - NXX_085, - NXX_086, - NXX_087, - NXX_088, - NXX_089, - NXX_090, - NXX_091, - NXX_092, - NXX_093, - NXX_094, - NXX_095, - NXX_096, - NXX_097, - NXX_098, - NXX_099, - NXX_100, - NXX_101, - NXX_102, - NXX_103, - NXX_104, - NXX_105, - NXX_106, - NXX_107, - NXX_108, - NXX_109, - NXX_110, - NXX_111, - NXX_112, - NXX_113, - NXX_114, - NXX_115, - NXX_116, - NXX_117, - NXX_118, - NXX_119, - NXX_120, - NXX_121, - NXX_122, - NXX_123, - NXX_124, - NXX_125, - NXX_126, - NXX_127, - NXX_128, - NXX_129, - NXX_130, - NXX_131, - NXX_132, - NXX_133, - NXX_134, - NXX_135, - NXX_136, - NXX_137, - NXX_138, - NXX_139, - NXX_140, - NXX_141, - NXX_142, - NXX_143, - NXX_144, - NXX_145, - NXX_146, - NXX_147, - NXX_148, - NXX_149, - NXX_150, - NXX_151, - NXX_152, - NXX_153, - NXX_154, - NXX_155, - NXX_156, - NXX_157, - NXX_158, - NXX_159, - NXX_160, - NXX_161, - NXX_162, - NXX_163, - NXX_164, - NXX_165, - NXX_166, - NXX_167, - NXX_168, - NXX_169, - NXX_170, - NXX_171, - NXX_172, - NXX_173, - NXX_174, - NXX_175, - NXX_176, - NXX_177, - NXX_178, - NXX_179, - NXX_180, - NXX_181, - NXX_182, - NXX_183, - NXX_184, - NXX_185, - NXX_186, - NXX_187, - NXX_188, - NXX_189, - NXX_190, - NXX_191, - NXX_192, - NXX_193, - NXX_194, - NXX_195, - NXX_196, - NXX_197, - NXX_198, - NXX_199, - NXX_200, - NXX_201, - NXX_202, - NXX_203, - NXX_204, - NXX_205, - NXX_206, - NXX_207, - NXX_208, - NXX_209, - NXX_210, - NXX_211, - NXX_212, - NXX_213, - NXX_214, - NXX_215, - NXX_216, - NXX_217, - NXX_218, - NXX_219, - NXX_220, - NXX_221, - NXX_222, - NXX_223, - NXX_224, - NXX_225, - NXX_226, - NXX_227, - NXX_228, - NXX_229, - NXX_230, - NXX_231, - NXX_232, - NXX_233, - NXX_234, - NXX_235, - NXX_236, - NXX_237, - NXX_238, - NXX_239, - NXX_240, - NXX_241, - NXX_242, - NXX_243, - NXX_244, - NXX_245, - NXX_246, - NXX_247, - NXX_248, - NXX_249, - NXX_250, - NXX_251, - NXX_252, - NXX_253, - NXX_254, - NXX_255, - NXX_256, - NXX_257, - NXX_258, - NXX_259, - NXX_260, - NXX_261, - NXX_262, - NXX_263, - NXX_264, - NXX_265, - NXX_266, - NXX_267, - NXX_268, - NXX_269, - NXX_270, - NXX_271, - NXX_272, - NXX_273, - NXX_274, - NXX_275, - NXX_276, - NXX_277, - NXX_278, - NXX_279, - NXX_280, - NXX_281, - NXX_282, - NXX_283, - NXX_284, - NXX_285, - NXX_286, - NXX_287, - NXX_288, - NXX_289, - NXX_290, - NXX_291, - NXX_292, - NXX_293, - NXX_294, - NXX_295, - NXX_296, - NXX_297, - NXX_298, - NXX_299, - NXX_300, - NXX_301, - NXX_302, - NXX_303, - NXX_304, - NXX_305, - NXX_306, - NXX_307, - NXX_308, - NXX_309, - NXX_310, - NXX_311, - NXX_312, - NXX_313, - NXX_314, - NXX_315, - NXX_316, - NXX_317, - NXX_318, - NXX_319, - NXX_320, - NXX_321, - NXX_322, - NXX_323, - NXX_324, - NXX_325, - NXX_326, - NXX_327, - NXX_328, - NXX_329, - NXX_330, - NXX_331, - NXX_332, - NXX_333, - NXX_334, - NXX_335, - NXX_336, - NXX_337, - NXX_338, - NXX_339, - NXX_340, - NXX_341, - NXX_342, - NXX_343, - NXX_344, - NXX_345, - NXX_346, - NXX_347, - NXX_348, - NXX_349, - NXX_350, - NXX_351, - NXX_352, - NXX_353, - NXX_354, - NXX_355, - NXX_356, - NXX_357, - NXX_358, - NXX_359, - NXX_360, - NXX_361, - NXX_362, - NXX_363, - NXX_364, - NXX_365, - NXX_366, - NXX_367, - NXX_368, - NXX_369, - NXX_370, - NXX_371, - NXX_372, - NXX_373, - NXX_374, - NXX_375, - NXX_376, - NXX_377, - NXX_378, - NXX_379, - NXX_380, - NXX_381, - NXX_382, - NXX_383, - NXX_384, - NXX_385, - NXX_386, - NXX_387, - NXX_388, - NXX_389, - NXX_390, - NXX_391, - NXX_392, - NXX_393, - NXX_394, - NXX_395, - NXX_396, - NXX_397, - NXX_398, - NXX_399, - NXX_400, - NXX_401, - NXX_402, - NXX_403, - NXX_404, - NXX_405, - NXX_406, - NXX_407, - NXX_408, - NXX_409, - NXX_410, - NXX_411, - NXX_412, - NXX_413, - NXX_414, - NXX_415, - NXX_416, - NXX_417, - NXX_418, - NXX_419, - NXX_420, - NXX_421, - NXX_422, - NXX_423, - NXX_424, - NXX_425, - NXX_426, - NXX_427, - NXX_428, - NXX_429, - NXX_430, - NXX_431, - NXX_432, - NXX_433, - NXX_434, - NXX_435, - NXX_436, - NXX_437, - NXX_438, - NXX_439, - NXX_440, - NXX_441, - NXX_442, - NXX_443, - NXX_444, - NXX_445, - NXX_446, - NXX_447, - NXX_448, - NXX_449, - NXX_450, - NXX_451, - NXX_452, - NXX_453, - NXX_454, - NXX_455, - NXX_456, - NXX_457, - NXX_458, - NXX_459, - NXX_460, - NXX_461, - NXX_462, - NXX_463, - NXX_464, - NXX_465, - NXX_466, - NXX_467, - NXX_468, - NXX_469, - NXX_470, - NXX_471, - NXX_472, - NXX_473, - NXX_474, - NXX_475, - NXX_476, - NXX_477, - NXX_478, - NXX_479, - NXX_480, - NXX_481, - NXX_482, - NXX_483, - NXX_484, - NXX_485, - NXX_486, - NXX_487, - NXX_488, - NXX_489, - NXX_490, - NXX_491, - NXX_492, - NXX_493, - NXX_494, - NXX_495, - NXX_496, - NXX_497, - NXX_498, - NXX_499, - NXX_500, - NXX_501, - NXX_502, - NXX_503, - NXX_504, - NXX_505, - NXX_506, - NXX_507, - NXX_508, - NXX_509, - NXX_510, - NXX_511, - NXX_512, + RESERVED, ; @Override