Skip to content
This repository
Browse code

Add the CCIR476 alphabet.

  • Loading branch information...
commit 37322b091ead81d39b2775b249fe64af9e883765 1 parent e911542
Ian Wraith authored

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. +22 0 src/org/e2k/FSK.java
22 src/org/e2k/FSK.java
@@ -12,6 +12,9 @@
12 12 public final int ITA3VALS[]={26,25,76,28,56,19,97,82,112,35,11,98,97,84,70,74,13,100,42,69,50,73,37,22,21,49,67,88,14,38,104,7,52,41,44,81};
13 13 public final String ITA3LETS[]={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","<cr>","<lf>","<let>","<fig>"," ","","<Request>","<Idle a>","<Idle b>","<0x51>"};
14 14 public final String ITA3NUMS[]={"","?",":","","3","","","","8","<BELL>",")",")",".",",","9","0","1","4","'","5","7","=","2","/","6","+","<cr>","<lf>","<let>","<fig>"," ","","<Request>","<Idle a>","<Idle b>","<0x51>"};
  15 + public final int CCIR476VALS[]={106,92,46,39,86,85,116,43,78,77,113,45,71,75,83,27,53,105,23,30,101,99,58,29,60,114,89,57,120,108,54,90,15};
  16 + public final String CCIR476LETS[]={"<32>"," ","Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M","<cr>","<lf>","<fig>","<let>","<alpha>"};
  17 + public final String CCIR476NUMS[]={"<32>"," ","1","2","3","4","5","6","7","8","9","0","-","'"," ","%","@","#","*","(",")","+","/",":","=","?",",",".","<cr>","<lf>","<fig>","<let>","<alpha>"};
15 18 public boolean lettersMode=true;
16 19 private int highSpectrum;
17 20 private double totalEnergy;
@@ -316,4 +319,23 @@ public boolean checkITA3Char (int c) {
316 319 return false;
317 320 }
318 321
  322 + // Return a CCIR476 character
  323 + public int retCCIR476Val (int c) {
  324 + int a;
  325 + for (a=0;a<CCIR476VALS.length;a++) {
  326 + if (c==CCIR476VALS[a]) return a;
  327 + }
  328 + return 0;
  329 + }
  330 +
  331 + // Check if a number if a valid CCIR476 character
  332 + public boolean checkCCIR476Char (int c) {
  333 + int a;
  334 + for (a=0;a<CCIR476VALS.length;a++) {
  335 + if (c==CCIR476VALS[a]) return true;
  336 + }
  337 + return false;
  338 + }
  339 +
  340 +
319 341 }

0 comments on commit 37322b0

Please sign in to comment.
Something went wrong with that request. Please try again.