first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
.easypack_rates {
max-width: 600px;
}
.easypack_rates td {
max-width: 60px;
}
.easypack_rates .input-text {
width: 100%;
}
.easypack_rates .price {
width: 60px;
}
.easypack_rates .country {
padding-left: 10px;
}
.easypack_rates .action {
width: 90px;
}
.easypack_rates .delete_rate {
width: 100%;
text-align: center;
}
#woocommerce_easypack_cross_border_parcel_machines_rates, #woocommerce_easypack_parcel_machines_cod_rates {
max-width: 600px;
}
#woocommerce_easypack_cross_border_parcel_machines_rates .input-text {
width: 100%;
}
#woocommerce_easypack_parcel_machines_rates {
max-width: 600px;
}
#woocommerce_easypack_parcel_machines_rates .input-text {
width: 100%;
}
#woocommerce_easypack_parcel_machines_cod_rates {
max-width: 600px;
}
#woocommerce_easypack_parcel_machines_cod_rates .price {
width: 70px;
}
#woocommerce_easypack_parcel_machines_cod_rates .input-text {
width: 100%;
}
#woocommerce_easypack_cross_border_courier_rates {
max-width: 800px;
}
#woocommerce_easypack_cross_border_courier_rates .input-text {
width: 100%;
}
#woocommerce_easypack_cross_border_courier_rates .price {
width: 60px;
}
#woocommerce_easypack_cross_border_courier_rates .country {
padding-left: 10px;
}
#easypack_error {
font-weight: bold;
color: red;
}
#easypack_error ul li {
list-style-type: circle;
margin-left: 30px;
}
ul.easypack_error li {
list-style-type: circle;
margin-left: 30px;
}
.form-row label {
display: inline;
}
.form-row input[type=number], .form-row input[type=text], .form-row select {
width: auto;
}

View File

@@ -0,0 +1,74 @@
.easypack-shipping-method-logo img {
max-width: 100;
max-height: 40px;
display: block;
border:none;
}
.sheepla-widget-fullscreen {
position: fixed;
}
.inpost_returns_button {
background:linear-gradient(#FFE462, #FFA900) #FFE462;
border:1px solid #FECB2C;
box-shadow:#666666 0 1px 1px;
color:#000000 !important;
display:inline-block !important;
font-size:18px;
letter-spacing:0;
line-height:18px;
text-decoration:none !important;
text-shadow:#FFFFFF 1px 1px 3px;
text-transform:uppercase;
border-radius:8px;
display:block;
font-size:20px;
margin:20px auto 0;
padding:13px 42px !important;
}
#selected-parcel-machine {
}
.font-height-600 {
font-weight: 600;!important;
}
.hidden {
display: none;!important;
}
#selected-parcel-machine {
min-width: 400px;
}
.italic {
font-style: italic;
}
.easypack-parcel-machine-select {
padding-bottom: 120px;
}
.easypack-shipping-method-logo {
/*top: 13px;*/
position: relative;
}
.woocommerce-checkout-review-order-table .easypack-shipping-method-logo {
position: relative;
top: -3px;
}
.calculated_shipping .easypack-shipping-method-logo {
position: relative;
top: -3px;
}
@media (max-width: 500px) {
#widget-modal {
width: 100% !important;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,3 @@
<?php
// Silence is golden.
?>

View File

@@ -0,0 +1,39 @@
jQuery(document).ready(function () {
var machine_id_field;
window.easyPackAsyncInit = (function () {
easyPack.init({});
});
jQuery('.settings-geowidget').click(function (e) {
machine_id_field = jQuery(this);
e.preventDefault();
easyPack.init({
apiEndpoint: 'https://api-pl-points.easypack24.net/v1',
defaultLocale: 'pl',
closeTooltip: false,
points: {
types: ['parcel_locker_only']
},
map: {
useGeolocation: true,
initialTypes: ['parcel_locker']
}
});
easyPack.modalMap(function (point) {
machine_id_field.val(point.name);
jQuery('#selected-parcel-machine').removeClass('hidden');
jQuery('#selected-parcel-machine-id').html(parcelMachineAddressDesc);
}, {width: 500, height: 600});
setTimeout(function () {
jQuery("html, body").animate({scrollTop: jQuery('#widget-modal').offset().top}, 1000);
}, 0);
});
});

View File

@@ -0,0 +1,36 @@
jQuery(document).ready(function () {
var initiated = false;
window.easyPackAsyncInit = (function () {
easyPack.init({});
});
//var button = document.getElementById('geowidget_show_map');
jQuery('.settings-geowidget').click(function (e) {
var machine_id_field = jQuery(this);
e.preventDefault();
easyPack.init({
apiEndpoint: 'https://api-pl-points.easypack24.net/v1',
defaultLocale: 'pl',
closeTooltip: false,
points: {
types: ['parcel_locker_only']
},
map: {
useGeolocation: true,
initialTypes: ['parcel_locker']
}
});
easyPack.modalMap(function (point) {
machine_id_field.val(point.name);
jQuery('#selected-parcel-machine').removeClass('hidden');
jQuery('#selected-parcel-machine-id').html(parcelMachineAddressDesc);
}, {width: 500, height: 600});
setTimeout(function () {
jQuery("html, body").animate({scrollTop: jQuery('#widget-modal').offset().top}, 1000);
}, 0);
});
});

View File

@@ -0,0 +1,81 @@
jQuery(document).ready(function(){
function easypack_dispatch_point() {
if ( jQuery('#easypack_api_country').val() == 'pl' || jQuery('#easypack_api_country').val() == 'test-pl' ) {
jQuery('#easypack_dispatch_point_name').closest('table').prev().css('display','block');
jQuery('#easypack_dispatch_point_name').closest('table').css('display','table');
jQuery('#easypack_crossborder_password').closest('tr').css('display','table-row');
}
else {
jQuery('#easypack_dispatch_point_name').closest('table').prev().css('display','none');
jQuery('#easypack_dispatch_point_name').closest('table').css('display','none');
jQuery('#easypack_crossborder_api_url').closest('tr').css('display','none');
jQuery('#easypack_crossborder_password').closest('tr').css('display','none');
jQuery('#easypack_default_package_size').val('A');
jQuery('#easypack_default_package_size').closest('tr').css('display','none');
}
}
easypack_dispatch_point();
jQuery('#easypack_api_country').change(function(){
var url = 'https://api-'+jQuery('#easypack_api_country').val()+'.easypack24.net';
url = url.replace("api-test","test-api");
jQuery('#easypack_api_url').val(url);
easypack_dispatch_point();
easypack_api_change();
if (jQuery('#easypack_api_country').val() == 'gb') {
//alert('ddded');
jQuery('#easypack_api_url').val('https://api-uk.easypack24.net/v4');
}
});
jQuery('#easypack_returns_page_create').click(function() {
var country = jQuery('#easypack_api_country').val();
//alert( country );
var data = {
action: 'easypack',
easypack_action: 'returns_page_create',
country: country,
security: easypack_nonce,
};
jQuery.post(ajaxurl, data, function(response) {
if ( response != 0 ) {
response = JSON.parse(response);
jQuery('#easypack_returns_page').append('<option value="'+response.page_id+'">'+response.page_title+'</option>');
jQuery('#easypack_returns_page').val(response.page_id);
jQuery('#easypack_returns_page').trigger('change');
jQuery('#easypack_returns_page_create_message').html(response.message);
}
});
})
jQuery('#easypack_default_dispatch_point').change(function() {
var data = {
action: 'easypack',
easypack_action: 'dispatch_point',
security: easypack_nonce,
dispatch_point_name: jQuery(this).val(),
};
jQuery.post(ajaxurl, data, function(response) {
if ( response != 0 ) {
response = JSON.parse(response);
jQuery('#easypack_dispatch_point_name').val(response.name);
jQuery('#easypack_dispatch_point_email').val(response.email);
jQuery('#easypack_dispatch_point_phone').val(response.phone);
jQuery('#easypack_dispatch_point_office_hours').val(response.office_hours);
jQuery('#easypack_dispatch_point_street').val(response.address.street);
jQuery('#easypack_dispatch_point_building_no').val(response.address.building_no);
jQuery('#easypack_dispatch_point_flat_no').val(response.address.flat_no);
jQuery('#easypack_dispatch_point_post_code').val(response.address.post_code);
jQuery('#easypack_dispatch_point_city').val(response.address.city);
}
});
})
/*
jQuery(".easypack_cancel_dispatch_order").click(function() {
alert(1);
})
*/
})

View File

@@ -0,0 +1,23 @@
//easypack-widget
//select-link
jQuery(document).ready(function(){
jQuery( '#parcel_machine_id' ).bind( 'change', function() {
jQuery('.easypack-widget').hide();
});
});
function getAddressByPoint($pointObject)
{
var $output = '<span class="parcel-machine-desc">';
$output += $pointObject.name;
$output += '<br>';
$output += $pointObject.address.line1;
$output += '<br>';
$output += $pointObject.address.line2;
$output += '</span>';
return $output;
}

View File

@@ -0,0 +1,483 @@
<?php
/**
* EasyPack Dispatch Orders
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Dispatch_Orders' ) ) :
/**
* EasyPack_Dispatch_Orders
*/
class EasyPack_Dispatch_Orders {
protected static $instance;
public function __construct() {
add_action( 'woocommerce_register_post_type', array( $this, 'register_post_types' ), 5 );
add_action( 'manage_dispatch_order_posts_custom_column', array( $this, 'manage_dispatch_order_posts_custom_column' ), 10, 2 );
add_filter( 'manage_edit-dispatch_order_columns', array( $this, 'manage_edit_dispatch_order_columns' ) ) ;
add_filter( 'bulk_actions-' . 'edit-dispatch_order', '__return_empty_array' );
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
}
public static function EasyPack_Dispatch_Orders() {
if (self::$instance === null) {
self::$instance = new self();
}
return self::$instance;
}
public function create_dispatch_order( $dispatch_point ) {
$parcels = $_POST['easypack_parcel'];
$parcel_ids = array();
foreach ( $parcels as $parcel ) {
$parcel_exploded = explode( '.', $parcel );
if ( $parcel_exploded[0] == 'easypack' ) {
$parcel_ids[] = $parcel_exploded[2];
}
if ( $parcel_exploded[0] == 'crossborder' ) {
$parcel_id = $parcel_exploded[2];
$order_id = $parcel_exploded[1];
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
foreach ( $easypack_parcels as $easypack_parcel ) {
if ( $easypack_parcel['crossborder_data']['id'] == $parcel_id ) {
$parcel_ids[] = $easypack_parcel['crossborder_data']['tracking_number'];
}
}
}
}
$args = array( 'parcel_ids' => $parcel_ids );
try {
$response = EasyPack_API()->dispatch_order( $dispatch_point, $args );
return $response['id'];
}
catch ( Exception $e ) {
throw $e;
}
}
public function create_manifest( $easypack_dispatch_point, $easypack_dispatch_number ) {
$ret = array();
$easypack_parcel_ids = $_POST['easypack_parcel'];
$all_parcels = array( 'crossborder' => array(), 'easypack' => array() );
foreach ( $easypack_parcel_ids as $easypack_parcel_id ) {
$order_parcel = explode( '.', $easypack_parcel_id );
$api = $order_parcel[0];
$order_id = $order_parcel[1];
$parcel_id = $order_parcel[2];
$all_parcels[$api][] = array( 'parcel_id' => $parcel_id, 'order_id' => $order_id );
}
foreach ( $all_parcels as $api => $api_parcels ) {
if ( count( $api_parcels ) ) {
try {
if ( $api == 'crossborder' ) {
$args = array( 'shipments' => array() );
foreach ( $api_parcels as $api_parcel ) {
$args['shipments'][] = array( 'id' => $api_parcel['parcel_id'] );
}
$manifest = CrossBorder_API()->manifest( $args );
}
$post = array( 'post_type' => 'dispatch_order', 'post_status' => 'publish' );
$post['post_title'] = $api . ' - ' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), current_time( 'timestamp' ) );
$post_id = wp_insert_post( $post );
$post = get_post( $post_id );
$post->post_title = $post_id . ' - ' . $post->post_title;
wp_update_post( $post );
update_post_meta( $post_id, '_parcels', $api_parcels );
if ( $api == 'crossborder' ) {
update_post_meta( $post_id, '_manifest', $manifest );
}
$sender = get_option( 'easypack_sender_email' );
if ( get_option( 'easypack_sender_company_name' ) ) {
$sender .= "\n" . get_option( 'easypack_sender_company_name' );
}
$sender .= "\n" . get_option( 'easypack_sender_first_name' ) . ' ' . get_option( 'easypack_sender_last_name' );
$sender .= "\n" . get_option( 'easypack_sender_street' ) . ' ' . get_option( 'easypack_sender_building_no' );
if ( get_option( 'easypack_sender_flat_no' ) ) {
$sender .= "/" . get_option( 'easypack_sender_flat_no' );
}
$sender .= "\n" . get_option( 'easypack_sender_post_code' ) . ' ' . get_option( 'easypack_sender_city' );
$sender .= "\nTel.:" . get_option( 'easypack_sender_phone' );
update_post_meta( $post_id, '_sender', $sender );
update_post_meta( $post_id, '_dispatch_number', $easypack_dispatch_number );
if ( $api == 'easypack' ) {
$dispatch_point = EasyPack_API()->dispatch_point( $easypack_dispatch_point );
update_post_meta( $post_id, '_dispatch_point', $dispatch_point );
}
update_post_meta( $post_id, '_api', $api );
update_post_meta( $post_id, '_parcel_ids', $api_parcels );
$ret[] = array( 'post_id' => $post_id, 'api' => $api ) ;
}
catch ( Exception $e ) {
throw $e;
}
}
}
foreach ( $easypack_parcel_ids as $easypack_parcel_id ) {
$order_parcel = explode( '.', $easypack_parcel_id );
$api = $order_parcel[0];
$order_id = $order_parcel[1];
$parcel_id = $order_parcel[2];
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
foreach ( $easypack_parcels as $key => $easypack_parcel ) {
if ( $api == 'crossborder' ) {
if ( $easypack_parcel['crossborder_data']['id'] == $parcel_id ) {
$easypack_parcels[$key]['dispatch_order'] = $post_id;
}
}
else {
if ( $easypack_parcel['easypack_data']['id'] == $parcel_id ) {
$easypack_parcels[$key]['dispatch_order'] = $post_id;
}
}
}
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
$dispatched = true;
foreach ( $easypack_parcels as $key => $easypack_parcel ) {
if ( empty( $easypack_parcels[$key]['dispatch_order'] ) ) $dispatched = false;
}
if ( $dispatched ) {
update_post_meta( $order_id, '_easypack_dispatched', '1' );
}
}
return $ret;
}
public function get_crossborder_manifest( $post_id ) {
$manifest = get_post_meta( $post_id, '_manifest' );
header( 'Location: ' . $manifest[0]['pdf_url'] );
}
public function create_easypack_manifest( $post_id ) {
$post = get_post( $post_id );
require_once( 'class-manifest-pdf.php' );
$width_full = 186;
$width2 = array( $width_full/2, $width_full/2);
$width3 = array( $width_full/3, $width_full/3, $width_full/3);
$width_col_size = 10;
$width3_2 = array( $width_col_size, ($width_full-$width_col_size)/2, ($width_full-$width_col_size)/2);
$width4 = array( $width_full/4, $width_full/4, $width_full/4, $width_full/4);
$width_col_size = 10;
$width4_2 = array( $width_col_size, $width_full/3 - $width_col_size, $width_full/3, $width_full/3);
$pdf = new EasyPack_Manifest_PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->Ln(5);
$pdf->AddFont('arialpl','','arialpl.php');
$pdf->SetFont('arialpl','', 11);
$text = iconv( 'utf-8', 'iso-8859-2', 'Potwierdzenie odebrania paczek nr ' . $post->ID );
$pdf->Cell( 0, 0, $text, 0, 0 , 'C' );
$pdf->Ln(5);
$dispatch_number = get_post_meta( $post_id, '_dispatch_number', true );
$text = iconv( 'utf-8', 'iso-8859-2', 'do zamówienia Odbioru nr ' . $dispatch_number );
$pdf->Cell( 0, 0, $text, 0, 0 , 'C' );
$pdf->Ln(15);
$text = iconv( 'utf-8', 'iso-8859-2', 'Data' );
$text .= ' ' . date_i18n( 'd/m/Y', strtotime( $post->post_date ) );
$pdf->Cell( 0, 0, $text, 0, 0 );
$pdf->Ln(5);
$text = iconv( 'utf-8', 'iso-8859-2', 'Oddział InPost' );
$pdf->Cell( $width3[0], 8, $text, 1, 'L' );
$text = iconv( 'utf-8', 'iso-8859-2', 'Nadawca' );
$pdf->Cell( $width3[1], 8, $text, 1, 'L' );
$text = iconv( 'utf-8', 'iso-8859-2', 'Adres odbioru' );
$pdf->Cell( $width3[2], 8, $text, 1, 'L' );
$pdf->Ln(8);
$pdf->Cell( $width3[0], 30, '', 1, 'L' );
$sender = get_post_meta( $post_id, '_sender', true );
$y = $pdf->GetY();
$x = $pdf->GetX();
$pdf->Cell( $width3[1], 30, '', 1, 'L' );
$pdf->SetXY( $x, $y );
$pdf->MultiCell( $width3[1], 5, $pdf->iconv( $sender ), 0, 'L' );
$pdf->SetXY( $x+$width3[1], $y );
$dispatch_point = get_post_meta( $post_id, '_dispatch_point', true );
$dispatch_address = '';
if ( $dispatch_point ) {
$dispatch_address = $dispatch_point['email'];
$dispatch_address .= "\n" . $dispatch_point['name'];
$dispatch_address .= "\n" . $dispatch_point['address']['street'] . ' ' . $dispatch_point['address']['building_no'];
if ( isset( $dispatch_point['address']['flat_no'] ) && trim($dispatch_point['address']['flat_no']) != '' ) {
$dispatch_address .= '/' . $dispatch_point['address']['flat_no'];
}
$dispatch_address .= "\n" . $dispatch_point['address']['post_code'] . ' ' . $dispatch_point['address']['city'];
$dispatch_address .= "\nTel.: " . $dispatch_point['phone'];
}
$y = $pdf->GetY();
$x = $pdf->GetX();
$pdf->Cell( $width3[1], 30, '', 1, 'L' );
$pdf->SetXY( $x, $y );
$pdf->MultiCell( $width3[2], 5, $pdf->iconv( $dispatch_address ), 0, 'L' );
$pdf->SetXY( $x+$width3[2], $y );
$pdf->Ln(30);
$pdf->Cell( $width_full, 16, $pdf->iconv( 'Uwagi:' ), 1, 'L' );
$pdf->Ln(16);
//
$pdf->Cell( $width4_2[0], 8, $pdf->iconv( 'Typ' ), 1, 0, 'C' );
$pdf->Cell( $width4_2[1], 8, $pdf->iconv( 'Kod paczki' ), 1, 0, 'C' );
$pdf->Cell( $width4_2[2], 8, $pdf->iconv( 'Numer referencyjny' ), 1, 0, 'C' );
$pdf->Cell( $width4_2[3], 8, $pdf->iconv( 'Odbiorca' ), 1, 0, 'C' );
$pdf->Ln(8);
//
$parcels = get_post_meta( $post_id, '_parcels', true );
$parcel_sizes = array( 'A' => 0, 'B' => 0, 'C' => 0 );
foreach ( $parcels as $parcel ) {
$order_id = $parcel['order_id'];
$parcel_id = $parcel['parcel_id'];
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
$easypack_data = EasyPack_Helper()->get_easypack_parcel_data( $easypack_parcels, $parcel_id );
$parcel_sizes[$easypack_data['size']]++;
$pdf->Cell( $width4_2[0], 25, $easypack_data['size'], 1, 0, 'C' );
$pdf->Code128($pdf->GetX()+5,$pdf->GetY()+1,$easypack_data['id'],$width4_2[1]-10,15);
$pdf->Cell( $width4_2[1], 25, '', 1, 0, 'C' );
$pdf->SetXY($pdf->GetX()-$width4_2[1], $pdf->GetY()+15);
$pdf->SetFont('arialpl','', 10);
$pdf->Cell( $width4_2[1], 10, $easypack_data['id'], 0, 0, 'C' );
$pdf->SetFont('arialpl','', 11);
$pdf->SetXY($pdf->GetX(), $pdf->GetY()-15);
$pdf->Cell( $width4_2[2], 25, '', 1, 0, 'C' );
$pdf->Cell( $width4_2[3], 25, $easypack_data['receiver_email'], 1, 0, 'C' );
$pdf->Ln(25);
}
$pdf->Ln(10);
$pdf->SetFont('arialpl','', 10);
if ( $pdf->GetY() > 140 ) {
$pdf->AddPage();
$pdf->Ln(10);
}
$pdf->Cell( $width4[0], 8, $pdf->iconv( 'Paczka gabarytu A' ), 1, 0, 'C' );
$pdf->Cell( $width4[1], 8, $pdf->iconv( 'Paczka gabarytu B' ), 1, 0, 'C' );
$pdf->Cell( $width4[2], 8, $pdf->iconv( 'Paczka gabarytu C' ), 1, 0, 'C' );
$pdf->Cell( $width4[2], 8, $pdf->iconv( 'Suma' ), 1, 0, 'C' );
$pdf->Ln(8);
$pdf->Cell( $width4[0], 8, $parcel_sizes['A'], 1, 0, 'C' );
$pdf->Cell( $width4[1], 8, $parcel_sizes['B'], 1, 0, 'C' );
$pdf->Cell( $width4[2], 8, $parcel_sizes['C'], 1, 0, 'C' );
$pdf->Cell( $width4[2], 8, $parcel_sizes['A'] + $parcel_sizes['B'] + $parcel_sizes['C'], 1, 0, 'C' );
$pdf->Ln(16);
$y = $pdf->GetY();
$pdf->Cell( 3, 3, '', 1, 0, 'C' );
$pdf->SetXY($pdf->GetX()+2, $pdf->GetY()-2);
$pdf->MultiCell( 80, 6, $pdf->iconv( "sprawdzono numery wszystkich paczek\n zgadza się / nie zgadza się - Uwagi\n\n.....................................................................\n\n....................................................................."
), 0, 'L' );
$pdf->SetXY( $pdf->GetX()+86, $y );
$pdf->Cell( 3, 3, '', 1, 0, 'C' );
$pdf->SetXY($pdf->GetX()+2, $pdf->GetY()-2);
$pdf->MultiCell( 100, 6, $pdf->iconv( "przeliczono ilość sztuk w poszczególnych gabarytach\n zgadza się / nie zgadza się - Uwagi\n\n..........................................................................\n\n.........................................................................."
), 0, 'L' );
$y = $pdf->GetY();
$pdf->Ln(5);
$pdf->Cell( 3, 3, '', 1, 0, 'C' );
$pdf->SetXY($pdf->GetX()+2, $pdf->GetY()-2);
$pdf->MultiCell( 100, 6, $pdf->iconv( "nie dokonano weryfikacji ilości i numerów przesyłek - rzeczywista liczba sztuk zostanie potwierdzona przez InPost dopiero po ich rejestracji w systemie śledzenia. Tylko przesyłki zarejestrowane w sytemie śledzenia są uważane za nadane.\nUwagi\n\n.....................................................................\n\n.....................................................................\n\nPodpis kuriera"
), 0, 'L' );
$pdf->SetXY( $pdf->GetX()+111, $y+5 );
$pdf->MultiCell( 100, 6, $pdf->iconv( "Podpis i pieczęć nadawcy"
), 0, 'L' );
//
$pdf->Output( 'D', 'manifest_' . $post_id . '.pdf' );
}
public function register_post_types() {
$labels = array(
'name' => _x( 'Dispatch Orders', 'post type general name', EasyPack::$text_domain ),
'singular_name' => _x( 'Dispatch Order', 'post type singular name', EasyPack::$text_domain ),
'menu_name' => _x( 'Dispatch Orders', 'admin menu', EasyPack::$text_domain ),
'name_admin_bar' => _x( 'Dispatch Order', 'add new on admin bar', EasyPack::$text_domain ),
'all_items' => __( 'All Dispatch Orders', EasyPack::$text_domain ),
'search_items' => __( 'Search Dispatch Orders', EasyPack::$text_domain ),
'not_found' => __( 'No Dispatch Orders found.', EasyPack::$text_domain ),
'not_found_in_trash' => __( 'No Dispatch Orders found in Trash.', EasyPack::$text_domain )
);
$args = array(
'labels' => $labels,
'description' => __( 'Dispatch Orders.', EasyPack::$text_domain ),
'public' => false,
'publicly_queryable' => false,
'show_ui' => true,
'show_in_menu' => false,
'query_var' => true,
'rewrite' => false,
'capability_type' => 'post',
'capabilities' => array(
'create_posts' => 'do_not_allow',
'edit_post' => false,
'delete_post' => false,
),
'map_meta_cap' => true,
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title' )
);
register_post_type( 'dispatch_order', $args );
}
//public function manage_posts_custom_column
public function manage_edit_dispatch_order_columns( $columns ) {
unset($columns['date']);
unset($columns['cb']);
$columns['created'] = __( 'Created', EasyPack::$text_domain );
// $columns['status'] = __( 'Status', EasyPack::$text_domain );
$columns['action'] = __( 'Action', EasyPack::$text_domain );
return $columns;
}
function manage_dispatch_order_posts_custom_column( $column, $post_id ) {
global $post;
$api = get_post_meta( $post_id, '_api', true );
$status = get_post_meta( $post_id, '_status', true );
switch( $column ) {
case 'created' :
echo $post->post_date;
break;
case 'status' :
if ( $status == 'cancelled' )
_e( 'Cancelled', EasyPack::$text_domain );
break;
case 'action' :
if ( $status != 'cancelled' ) {
if ( $api == 'crossborder' ) {
$url = site_url( '?easypack_download=1&crossborder_manifest=' . $post_id );
}
else {
$url = site_url( '?easypack_download=1&easypack_manifest=' . $post_id );
}
$link = '<a href="' . $url . '" target="blank" class="button-primary">' . __( 'Print', EasyPack::$text_domain ) . '</a>';
echo $link;
echo ' ';
$url = admin_url( 'edit.php?post_type=dispatch_order&cancel=' . $post_id );
$link = '<a href="' . $url . '" class="button easypack_cancel_dispatch_order">' . __( 'Cancel', EasyPack::$text_domain ) . '</a>';
// echo $link;
}
break;
default :
break;
}
}
function cancel_dispatch_order( $post ) {
$order_parcel_ids = get_post_meta( $post->ID, '_parcel_ids', true );
$api = get_post_meta( $post->ID, '_api', true );
foreach ( $order_parcel_ids as $order_parcel_id ) {
$order_id = $order_parcel_id['order_id'];
$parcel_id = $order_parcel_id['parcel_id'];
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
foreach ( $easypack_parcels as $key => $easypack_parcel ) {
if ( $api == 'crossborder' ) {
if ( $easypack_parcel['crossborder_data']['id'] == $parcel_id ) {
unset( $easypack_parcels[$key]['dispatch_order'] );
}
}
else {
if ( $easypack_parcel['easypack_data']['id'] == $parcel_id ) {
unset( $easypack_parcels[$key]['dispatch_order'] );
}
}
}
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
delete_post_meta( $order_id, '_easypack_dispatched' );
}
update_post_meta( $post->ID, '_status', 'cancelled' );
}
function admin_notices() {
global $pagenow;
if ( $pagenow == 'edit.php' && isset( $_GET['post_type'] ) && $_GET['post_type'] == 'dispatch_order' && isset( $_GET['cancel'] ) ) {
$post = get_post( $_GET['cancel'] );
if ( $post ) {
if ( get_post_meta( $post->ID, '_status' ) == 'cancelled' ) {
?>
<div class="error">
<p><?php echo sprintf( __( 'Dispatch order %d already cancelled.', EasyPack::$text_domain ), $post->ID ); ?></p>
</div>
<?php
}
else {
$this->cancel_dispatch_order( $post );
?>
<div class="updated">
<p><?php echo sprintf( __( 'Dispatch order %d cancelled.', EasyPack::$text_domain ), $post->ID ); ?></p>
</div>
<?php
}
}
}
}
}
function EasyPack_Dispatch_Orders() {
return EasyPack_Dispatch_Orders::EasyPack_Dispatch_Orders();
}
EasyPack_Dispatch_Orders();
endif;

View File

@@ -0,0 +1,192 @@
<?php
/**
* EasyPack Manifest PDF
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Manifest_PDF' ) ) :
/**
* EasyPack_Manifest_PDF
*/
class EasyPack_Manifest_PDF extends PDF_Code128 {
function Footer() {
$this->SetY( -10 );
$this->SetFont( 'Arial', '', 8 );
$this->Cell( 0, 10, __( 'Page ', EasyPack::$text_domain ) . $this->PageNo() . ' / {nb}', 0, 0, 'R' );
$this->SetY( -10 );
}
/**
* Draws text within a box defined by width = w, height = h, and aligns
* the text vertically within the box ($valign = M/B/T for middle, bottom, or top)
* Also, aligns the text horizontally ($align = L/C/R/J for left, centered, right or justified)
* drawTextBox uses drawRows
*
* This function is provided by TUFaT.com
*/
function drawTextBox($strText, $w, $h, $align='L', $valign='T', $border=true)
{
$xi=$this->GetX();
$yi=$this->GetY();
$hrow=$this->FontSize;
$textrows=$this->drawRows($w,$hrow,$strText,0,$align,0,0,0);
$maxrows=floor($h/$this->FontSize);
$rows=min($textrows,$maxrows);
$dy=0;
if (strtoupper($valign)=='M')
$dy=($h-$rows*$this->FontSize)/2;
if (strtoupper($valign)=='B')
$dy=$h-$rows*$this->FontSize;
$this->SetY($yi+$dy);
$this->SetX($xi);
$this->drawRows($w,$hrow,$strText,0,$align,false,$rows,1);
if ($border)
$this->Rect($xi,$yi,$w,$h);
}
function drawRows($w, $h, $txt, $border=0, $align='J', $fill=false, $maxline=0, $prn=0) {
$cw=&$this->CurrentFont['cw'];
if($w==0)
$w=$this->w-$this->rMargin-$this->x;
$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;
$s=str_replace("\r",'',$txt);
$nb=strlen($s);
if($nb>0 && $s[$nb-1]=="\n")
$nb--;
$b=0;
if($border)
{
if($border==1)
{
$border='LTRB';
$b='LRT';
$b2='LR';
}
else
{
$b2='';
if(is_int(strpos($border,'L')))
$b2.='L';
if(is_int(strpos($border,'R')))
$b2.='R';
$b=is_int(strpos($border,'T')) ? $b2.'T' : $b2;
}
}
$sep=-1;
$i=0;
$j=0;
$l=0;
$ns=0;
$nl=1;
while($i<$nb)
{
//Get next character
$c=$s[$i];
if($c=="\n")
{
//Explicit line break
if($this->ws>0)
{
$this->ws=0;
if ($prn==1) $this->_out('0 Tw');
}
if ($prn==1) {
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
}
$i++;
$sep=-1;
$j=$i;
$l=0;
$ns=0;
$nl++;
if($border && $nl==2)
$b=$b2;
if ( $maxline && $nl > $maxline )
return substr($s,$i);
continue;
}
if($c==' ')
{
$sep=$i;
$ls=$l;
$ns++;
}
$l+=$cw[$c];
if($l>$wmax)
{
//Automatic line break
if($sep==-1)
{
if($i==$j)
$i++;
if($this->ws>0)
{
$this->ws=0;
if ($prn==1) $this->_out('0 Tw');
}
if ($prn==1) {
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
}
}
else
{
if($align=='J')
{
$this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0;
if ($prn==1) $this->_out(sprintf('%.3F Tw',$this->ws*$this->k));
}
if ($prn==1){
$this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill);
}
$i=$sep+1;
}
$sep=-1;
$j=$i;
$l=0;
$ns=0;
$nl++;
if($border && $nl==2)
$b=$b2;
if ( $maxline && $nl > $maxline )
return substr($s,$i);
}
else
$i++;
}
//Last chunk
if($this->ws>0)
{
$this->ws=0;
if ($prn==1) $this->_out('0 Tw');
}
if($border && is_int(strpos($border,'B')))
$b.='B';
if ($prn==1) {
$this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill);
}
$this->x=$this->lMargin;
return $nl;
}
function iconv( $text ) {
return iconv( 'utf-8', 'iso-8859-2', $text );
}
}
endif;

View File

@@ -0,0 +1,68 @@
<?php
/**
* EasyPack Post Types
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Post_Types' ) ) :
/**
* EasyPack_Post_Types
*/
class EasyPack_Post_Types {
public static function init() {
add_action( 'woocommerce_register_post_type', array( __CLASS__, 'register_post_types' ), 5 );
}
public static function register_post_types() {
$labels = array(
'name' => _x( 'Dispatch Orders', 'post type general name', 'easypack' ),
'singular_name' => _x( 'Dispatch Order', 'post type singular name', 'easypack' ),
'menu_name' => _x( 'Dispatch Orders', 'admin menu', 'easypack' ),
'name_admin_bar' => _x( 'Dispatch Order', 'add new on admin bar', 'easypack' ),
'all_items' => __( 'All Dispatch Orders', 'easypack' ),
'search_items' => __( 'Search Dispatch Orders', 'easypack' ),
'not_found' => __( 'No Dispatch Orders found.', 'easypack' ),
'not_found_in_trash' => __( 'No Dispatch Orders found in Trash.', 'easypack' )
);
$args = array(
'labels' => $labels,
'description' => __( 'Dispatch Orders.', 'easypack' ),
'public' => false,
'publicly_queryable' => false,
'show_ui' => true,
'show_in_menu' => false,
'query_var' => true,
'rewrite' => false,
'capability_type' => 'post',
'capabilities' => array(
'create_posts' => false,
'edit_post' => false,
'delete_post' => false,
),
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title' )
);
register_post_type( 'dispatch_order', $args );
}
}
endif;
EasyPack_Post_Types::init();

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,203 @@
<?php
/**
* EasyPack Shipment Manager List Table
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Shipment_Manager_List_Table' ) ) :
if( ! class_exists( 'WP_List_Table' ) ) {
require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
}
/**
* EasyPack_Shipment_Manager_List_Table
*/
class EasyPack_Shipment_Manager_List_Table extends WP_List_Table {
protected $data = array();
function __construct( $send_method ) {
parent::__construct();
global $post;
$args = array(
'post_type' => 'shop_order',
'post_status' => 'any',
'meta_query' => array(
array(
'key' => '_easypack_status',
'value' => array( 'prepared', 'created', 'ReadyToBeSent' ),
'compare' => 'IN',
),
array(
'key' => '_easypack_dispatched',
'value' => '',
'compare' => 'NOT EXISTS',
),
)
);
if ( $send_method != 'all' ) {
$args['meta_query'][] = array(
'key' => '_easypack_send_method',
'value' => $send_method,
'compare' => '=',
);
}
$query = new WP_Query($args);
while ( $query->have_posts() ) {
$query->the_post();
if ( $post->post_status == 'wc-cancelled' ) {
/* skip cancelled orders */
continue;
}
$order = wc_get_order($post->ID);
$order_id = $order->get_id();
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
$data = array();
if ( isset($parcel['easypack_data']) ) {
$data['package_number'] = $parcel['easypack_data']['id'];
if ( isset( $parcel['easypack_data']['tracking_number'] ) ) {
$data['package_number'] = $parcel['easypack_data']['tracking_number'];
}
$data['parcel'] = $parcel;
$data['send_method_display'] = __( 'Courier', EasyPack::$text_domain );
$send_method = get_post_meta( $order_id, '_easypack_send_method', true );
$data['send_method'] = $send_method;
if ( $send_method == 'parcel_machine' )
$data['send_method_display'] = __( 'Parcel Locker', EasyPack::$text_domain );
$data['status'] = $parcel['easypack_data']['status'];
if ( is_array( $parcel['easypack_data']['status'] ) ) {
$data['status'] = $parcel['easypack_data']['status']['code'];
}
$data['order'] = $order_id;
$data['shipping_address'] = $order->get_formatted_shipping_address();
if ( isset( $parcel['easypack_data']['target_machine_id'] ) ) {
$data['shipping_address'] = __( 'Parcel Locker ', EasyPack::$text_domain ) . ' ' . $parcel['easypack_data']['target_machine_id'];
}
$data['parcel_id'] = $parcel['easypack_data']['id'];
$data['order_id'] = $order_id;
$data['api'] = 'easypack';
}
if ( isset($parcel['crossborder_data']) ) {
$data['package_number'] = $parcel['crossborder_data']['id'];
$data['package_number'] = $parcel['crossborder_data']['tracking_number'];
$data['parcel'] = $parcel;
$data['send_method_display'] = __( 'Courier', EasyPack::$text_domain );
$send_method = get_post_meta( $order_id, '_easypack_send_method', true );
$data['send_method'] = $send_method;
if ( $send_method == 'parcel_machine' )
$data['send_method_display'] = __( 'Parcel Locker', EasyPack::$text_domain );
$data['status'] = $parcel['crossborder_data']['status']['code'];
$data['order'] = $order_id;
$data['shipping_address'] = $order->get_formatted_shipping_address();
if ( isset( $parcel['crossborder_data']['target_machine_id'] ) ) {
$data['shipping_address'] = __( 'Parcel Locker ', EasyPack::$text_domain ) . ' ' . $parcel['crossborder_data']['target_machine_id'];
}
$data['parcel_id'] = $parcel['crossborder_data']['id'];
$data['order_id'] = $order_id;
$data['api'] = 'crossborder';
}
$this->data[] = $data;
}
}
}
wp_reset_postdata();
}
function bulk_actions( $which = '' ) {
}
function column_cb($item) {
return sprintf(
'<input class="easypack_parcel" type="checkbox" name="easypack_parcel[]" value="%s" />', $item['api'] . '.' . $item['order_id'] . '.' . $item['parcel_id'] . '.' . $item['send_method'] . '.' . $item['status']
);
}
function column_order( $item ) {
$link = '<a href="'. admin_url( 'post.php?post=' . $item['order'] . '&action=edit' ) .'" >';
$link .= '#' . $item['order'];
$link .= '</a>';
return $link;
}
function column_default( $item, $column_name ) {
switch( $column_name ) {
case 'package_number':
case 'send_method':
case 'send_method_display':
case 'status':
case 'order':
case 'shipping_address':
return $item[ $column_name ];
default:
return print_r( $item, true ) ; //Show the whole array for troubleshooting purposes
}
}
function get_columns(){
$gb = EasyPack_API()->api_country() === 'GB';
/*if (true === $gb) {
$k = null;
$v= null;
} else {
$k = 'send_method_display';
$v = __( 'Send method', EasyPack::$text_domain );
}*/
$k = 'send_method_display';
$v = __( 'Send method', EasyPack::$text_domain );
$columns = array(
'cb' => '<input type="checkbox" />',
'package_number' => __( 'Package', EasyPack::$text_domain ),
$k => $v,
'status' => __( 'Status', EasyPack::$text_domain ),
'order' => __( 'Order', EasyPack::$text_domain ),
'shipping_address' => __( 'Shipping address', EasyPack::$text_domain ),
// 'parcel' => __( 'Parcel', EasyPack::$text_domain ),
);
return $columns;
}
function get_hidden_columns() {
return array();
}
function prepare_items() {
$columns = $this->get_columns();
$hidden = $this->get_hidden_columns();
$sortable = $this->get_sortable_columns();
$this->_column_headers = array( $columns, $hidden, $sortable );
$per_page = 5000000;
$current_page = $this->get_pagenum();
$total_items = count( $this->data );
$this->found_data = $this->data;
$this->set_pagination_args( array(
'total_items' => $total_items,
'per_page' => $per_page
) );
$this->items = $this->data;
}
}
endif;

View File

@@ -0,0 +1,109 @@
<?php
/**
* EasyPack Shipment Manager
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Shipment_Manager' ) ) :
/**
* EasyPack_Shipment_Manager
*/
class EasyPack_Shipment_Manager {
public static function init() {
add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ) );
}
public static function admin_menu() {
global $menu;
$menu_pos = 56;
while ( isset( $menu[$menu_pos] ) ) {
$menu_pos++;
}
if ( EasyPack_API()->api_country() != '--' ) {
$icon_svg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjI0Ni45OTk5OTk5OTk5OTk5NyIgaGVpZ2h0PSIyMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiA8Zz4KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+CiAgPGcgaWQ9InN2Z18xIiBzdHJva2U9Im51bGwiPgogICA8cGF0aCBpZD0ic3ZnXzciIGQ9Im0xMDEuNTYxMDQsMTEwLjY3NDkyYzAsMCAtMTEuNjQ2MzcsNC41MDMxIC0yNi4wMTU5LDQuNTAzMWMtMTQuMzY4MTQsMCAtMjYuMDE1OSwtNC41MDMxIC0yNi4wMTU5LC00LjUwMzFzMTEuNjQ3NzUsLTQuNTAwMzMgMjYuMDE1OSwtNC41MDAzM2MxNC4zNjk1MywwIDI2LjAxNTksNC41MDAzMyAyNi4wMTU5LDQuNTAwMzMiIGZpbGw9IiNGRkNDMDAiIHN0cm9rZT0ibnVsbCIvPgogICA8cGF0aCBpZD0ic3ZnXzgiIGQ9Im0xMzcuNTM0NjUsNDQuNDYwM2MwLDAgLTEwLjMyMDA2LC02Ljk0OTY1IC0xOC4zNTM5OSwtMTguNjI3ODNjLTguMDMzOTQsLTExLjY3NjggLTEwLjc0MDUsLTIzLjY1OTI0IC0xMC43NDA1LC0yMy42NTkyNHMxMC4zMTg2OCw2Ljk0ODI3IDE4LjM1Mzk5LDE4LjYyNTA3YzguMDMzOTQsMTEuNjc5NTYgMTAuNzQwNSwyMy42NjIwMSAxMC43NDA1LDIzLjY2MjAxIiBmaWxsPSIjRkZDQzAwIiBzdHJva2U9Im51bGwiLz4KICAgPHBhdGggaWQ9InN2Z185IiBkPSJtMTExLjE4NjgzLDczLjAzMjAxYzAsMCAtMTIuNDM4ODQsLTEuMzg1NzggLTI1LjEyNTI0LC03Ljk5OTM2Yy0xMi42ODY0LC02LjYxMjIgLTIwLjgxNDM4LC0xNS45NDc1NSAtMjAuODE0MzgsLTE1Ljk0NzU1czEyLjQzODg0LDEuMzg1NzggMjUuMTI1MjQsNy45OTkzNmMxMi42ODY0LDYuNjEyMiAyMC44MTQzOCwxNS45NDc1NSAyMC44MTQzOCwxNS45NDc1NSIgZmlsbD0iI0ZGQ0MwMCIgc3Ryb2tlPSJudWxsIi8+CiAgIDxwYXRoIGlkPSJzdmdfMTAiIGQ9Im0xMzUuNzU4ODYsMTMwLjc2ODc1YzcuNTI5MTMsLTIuMjg0NzQgMTMuOTA0ODMsLTUuNjE5MTkgMTMuOTA0ODMsLTUuNjE5MTlzLTE3LjczNTc5LC00LjkzMDQ1IC0xNi40MzU3NSwtMjMuNDU0NTVjNC4wNzI5OCwtMzAuMzk3MjkgMjguNjgzNzQsLTU0LjI2MTIyIDU5LjQ5NDU1LC01OC4xMDMyM2MtMy4yNjgwNiwtMC40NTA4NiAtNi42MDUyOCwtMC42ODczNiAtMTAuMDAxOTcsLTAuNjcyMTVjLTM4LjEwODk4LDAuMTY4NzMgLTY4Ljg2MzA5LDMwLjU5NTA2IC02OC42OTE2LDY3Ljk1NzIyYzAuMTcwMTEsMzcuMzYwNzcgMzEuMjA0OTcsNjcuNTEwNSA2OS4zMTI1Nyw2Ny4zNDMxNmMzLjE3ODE3LC0wLjAxMzgzIDYuMzAxMDIsLTAuMjU3MjQgOS4zNjMwMSwtMC42Nzc2OGMtMjcuMDQwNzEsLTMuMzc4NzEgLTQ5LjA1MDAyLC0yMi4wNzE1NCAtNTYuOTQ1NjUsLTQ2Ljc3MzU3bDAuMDAwMDEsLTAuMDAwMDF6IiBmaWxsPSIjRkZDQzAwIi8+CiAgIDxwYXRoIGlkPSJzdmdfMTEiIGQ9Im0xMzcuNTM0NjUsMTc2LjYzMjNjMCwwIC0xMC4zMjAwNiw2Ljk0OTY1IC0xOC4zNTM5OSwxOC42MjkyMWMtOC4wMzM5NCwxMS42NzU0MSAtMTAuNzQwNSwyMy42NjA2MiAtMTAuNzQwNSwyMy42NjA2MnMxMC4zMTg2OCwtNi45NDk2NSAxOC4zNTM5OSwtMTguNjI3ODNjOC4wMzM5NCwtMTEuNjc2OCAxMC43NDA1LC0yMy42NjIwMSAxMC43NDA1LC0yMy42NjIwMSIgZmlsbD0iI0ZGQ0MwMCIgc3Ryb2tlPSJudWxsIi8+CiAgIDxwYXRoIGlkPSJzdmdfMTIiIGQ9Im0xMTEuMTg2ODMsMTQ4LjA2MTk3YzAsMCAtMTIuNDM4ODQsMS4zODU3OCAtMjUuMTI1MjQsNy45OTkzNmMtMTIuNjg2NCw2LjYxMDgxIC0yMC44MTQzOCwxNS45NDYxNyAtMjAuODE0MzgsMTUuOTQ2MTdzMTIuNDM4ODQsLTEuMzg1NzggMjUuMTI1MjQsLTcuOTk3OThzMjAuODE0MzgsLTE1Ljk0NzU1IDIwLjgxNDM4LC0xNS45NDc1NSIgZmlsbD0iI0ZGQ0MwMCIgc3Ryb2tlPSJudWxsIi8+CiAgPC9nPgogPC9nPgo8L3N2Zz4=';
add_menu_page( __('InPost', EasyPack::$text_domain ), __('InPost', EasyPack::$text_domain ), 'manage_options', 'inpost', null, $icon_svg, $menu_pos );
add_submenu_page( 'inpost', __( 'Shipments', EasyPack::$text_domain ), __( 'Shipments', EasyPack::$text_domain ), 'manage_options', 'easypack_shipment', array( __CLASS__, 'easypack_shipment' ) );
if ( EasyPack_API()->api_country() == 'PL' ) {
add_submenu_page( 'inpost', __( 'Dispatch Orders', EasyPack::$text_domain ), __( 'Dispatch Orders', EasyPack::$text_domain ), 'manage_options', 'edit.php?post_type=dispatch_order' );
}
remove_submenu_page( 'inpost', 'inpost' );
}
}
public static function easypack_shipment() {
require_once('class-shipment-manager-list-table.php' );
$dispatch_points = EasyPack_API()->customer_dispatch_points_options();
$dispatch_point = get_option( 'easypack_default_dispatch_point' );
if ( EasyPack_API()->api_country() == 'PL' || EasyPack_API()->api_country() == 'GB' ) {
$send_methods = array(
'all' => __( 'All', EasyPack::$text_domain ),
'parcel_machine' => __( 'Parcel Locker', EasyPack::$text_domain ),
'courier' => __( 'Courier', EasyPack::$text_domain ),
);
}
else {
$send_methods = array(
'courier' => __( 'Courier', EasyPack::$text_domain ),
);
}
if ( isset( $_POST['easypack_create_manifest_input'] ) && $_POST['easypack_create_manifest_input'] == 1 ) {
try {
$dispatch_order_id = EasyPack_Dispatch_Orders()->create_dispatch_order( $_POST['easypack_dispatch_point'] );
$manifests = EasyPack_Dispatch_Orders()->create_manifest( $_POST['easypack_dispatch_point'], $dispatch_order_id );
$message = __('Created manifests ', EasyPack::$text_domain );
foreach ( $manifests as $manifest ) {
if ( $manifest['api'] == 'crossborder' ) {
$url = site_url( '?easypack_download=1&crossborder_manifest=' . $manifest['post_id'] );
}
else {
$url = site_url( '?easypack_download=1&easypack_manifest=' . $manifest['post_id'] );
}
$link = ' <a href="' . $url . '" target="blank" class="">' . $manifest['post_id'] . '</a>, ';
$message .= $link;
}
$message = trim( trim( $message ), ',' );
?>
<div class="updated">
<p><?php echo $message; ?></p>
</div>
<?php
}
catch ( Exception $e ) {
$class = "error";
$message = __( 'Error while creating manifest: ', EasyPack::$text_domain ) . $e->getMessage();
echo "<div class=\"$class\"> <p>$message</p></div>";
}
}
$send_method = 'courier';
if ( isset( $_GET['send_method'] ) ) {
$send_method = $_GET['send_method'];
}
$shipment_manager_list_table = new EasyPack_Shipment_Manager_List_Table( $send_method );
include( 'views/html-shipment-manager.php' );
}
}
endif;
EasyPack_Shipment_Manager::init();

View File

@@ -0,0 +1,258 @@
<div class="wrap">
<div id="icon-users" class="icon32"></div>
<h2><?php _e( 'InPost Shipments' , EasyPack::$text_domain ); ?></h2>
<?php $shipment_manager_list_table->prepare_items(); ?>
<?php $gb = EasyPack_API()->api_country() === 'GB';?>
<form method="get">
<input type="hidden" name="page" value="easypack_shipment">
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<div style="float:left;">
<?php
$params = array(
'type' => 'select',
'options' => $dispatch_points,
'class' => array('wc-enhanced-select'),
'label' => __('Dispatch point ', EasyPack::$text_domain),
);
woocommerce_form_field('dispatch_point', $params, $dispatch_point );
?>
</div>
<div style="float:left;">
<p>&nbsp;
<span class="tips" data-tip="<?php esc_attr_e( 'From the list, select the packages that you want to be sent by courier.', EasyPack::$text_domain ); ?>">
<button disabled id="easypack_get_courier" class="button-primary"><?php _e( 'Get courier', EasyPack::$text_domain ); ?></button>&nbsp;
</span>
</p>
</div>
<div style="float:left;">
<p><span id="easypack_spinner_get_courier" class="spinner"></span></p>
</div>
<div style="clear:both;"></div>
<?php endif; ?>
<?php if (false === $gb):?>
<div style="float:left;">
<?php
$params = array(
'type' => 'select',
'options' => $send_methods,
'class' => array('wc-enhanced-select'),
'label' => __('Send method ', EasyPack::$text_domain ),
);
woocommerce_form_field('send_method', $params, $send_method );
?>
</div>
<div style="float:left;">
<p>&nbsp;<input class="button button-primary" type="submit" value="<?php _e( 'Filter parcels', EasyPack::$text_domain ); ?>" /></p>
</div>
<?php endif?>
<div style="clear:both;"></div>
<div style="float:left;">
<p>
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<span>
<?php else : ?>
<span class="tips" data-tip="<?php esc_attr_e( 'From the list, select the packages that you want to be collected to be sent. If Courier has been chosen, the collection of your packages by a courier will be arranged.', EasyPack::$text_domain ); ?>">
<?php endif; ?>
<button id="easypack_get_stickers" class="button-primary" href=""><?php _e( 'Get stickers', EasyPack::$text_domain ); ?></button>&nbsp;
</span>
</p>
</div>
<div style="float:left;">
<p><span id="easypack_spinner_get_stickers" class="spinner"></span></p>
</div>
<div style="clear:both;"></div>
<?php /*
<div style="float:left;">
<p>
<a id="easypack_create_manifest" class="button-primary" href=""><?php _e( 'Create manifest', EasyPack::$text_domain ); ?></a>
</p>
</div>
<div style="float:left;">
<p><span id="easypack_spinner_create_manifest" class="spinner"></span></p>
</div>
<div style="clear:both;"></div>
*/ ?>
</form>
<form id="easypack_shipment_form" method="post">
<input type="hidden" id="easypack_create_manifest_input" name="easypack_create_manifest_input" value="0" />
<input type="hidden" id="easypack_dispatch_point" name="easypack_dispatch_point" value="0" />
<input type="hidden" name="page" value="easypack_shipment">
<?php $shipment_manager_list_table->display(); ?>
</form>
</div>
<script type="text/javascript">
jQuery('#easypack_get_courier_old').click(function () {
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner_get_courier").addClass("is-active");
console.log('get_courier');
var parcels = [];
var count_parcels = 0;
jQuery('input.easypack_parcel').each(function(i) {
if ( jQuery(this).attr('checked') ) {
parcels[i] = jQuery(this).val();
count_parcels++;
}
});
if ( count_parcels == 0 ) {
alert('<?php _e( 'No parcels selected.', EasyPack::$text_domain ) ?>');
jQuery("#easypack_spinner_get_courier").removeClass("is-active");
jQuery('#easypack_get_courier').attr('disabled',false);
return false;
}
var data = {
action: 'easypack',
easypack_action: 'easypack_dispatch_order',
security: easypack_nonce,
parcels: parcels,
dispatch_point: jQuery('#dispatch_point').val()
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
return false;
}
else {
alert(response.message);
}
}
else {
alert('Bad response.');
}
jQuery('#easypack_get_courier').attr('disabled',false);
jQuery("#easypack_spinner_get_courier").removeClass("is-active");
});
console.log(parcels);
return false;
})
jQuery('#easypack_get_courier').click(function () {
var parcels = [];
var count_parcels = 0;
jQuery('input.easypack_parcel').each(function(i) {
if ( jQuery(this).attr('checked') ) {
parcels[i] = jQuery(this).val();
count_parcels++;
}
});
if ( count_parcels == 0 ) {
alert('<?php _e( 'No parcels selected.', EasyPack::$text_domain ) ?>');
jQuery("#easypack_spinner_get_stickers").removeClass("is-active");
return false;
}
jQuery('#easypack_create_manifest_input').val(1);
jQuery('#easypack_dispatch_point').val(jQuery('#dispatch_point').val());
jQuery("#easypack_shipment_form").submit();
return false;
});
jQuery('#easypack_get_stickers').click(function () {
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner_get_stickers").addClass("is-active");
console.log('get_stickers');
var parcels = [];
var count_parcels = 0;
jQuery('input.easypack_parcel').each(function(i) {
if ( jQuery(this).attr('checked') ) {
parcels[i] = jQuery(this).val();
count_parcels++;
}
});
if ( count_parcels == 0 ) {
alert('<?php _e( 'No parcels selected.', EasyPack::$text_domain ) ?>');
jQuery("#easypack_spinner_get_stickers").removeClass("is-active");
jQuery('#easypack_get_stickers').attr('disabled',false);
return false;
}
var data = {
action: 'easypack',
easypack_action: 'easypack_create_stickers',
security: easypack_nonce,
parcels: parcels,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
var url = '<?php echo site_url('?easypack_download=1&easypack_file='); ?>' + response.file + '&security=<?php echo wp_create_nonce( 'easypack_nonce' ); ?>';
console.log(url);
window.open( url, "_blank");
}
else {
alert(response.message);
}
}
else {
alert('Bad response.');
}
jQuery('#easypack_get_stickers').attr('disabled',false);
jQuery("#easypack_spinner_get_stickers").removeClass("is-active");
});
console.log(parcels);
return false;
})
jQuery('#easypack_create_manifest').click(function () {
var parcels = [];
var count_parcels = 0;
jQuery('input.easypack_parcel').each(function(i) {
if ( jQuery(this).attr('checked') ) {
parcels[i] = jQuery(this).val();
count_parcels++;
}
});
if ( count_parcels == 0 ) {
alert('<?php _e( 'No parcels selected.', EasyPack::$text_domain ) ?>');
jQuery("#easypack_spinner_get_stickers").removeClass("is-active");
return false;
}
jQuery('#easypack_create_manifest_input').val(1);
jQuery('#easypack_dispatch_point').val(jQuery('#dispatch_point').val());
jQuery("#easypack_shipment_form").submit();
return false;
});
jQuery('.easypack_parcel').change(function() {
var easypack_get_courier_disabled = false;
var easypack_get_courier_count = 0;
jQuery('.easypack_parcel').each(function() {
if ( jQuery(this).is(':checked') ) {
easypack_get_courier_count++;
var cb_split = (jQuery(this).val()).split(".");
if (cb_split[3] != 'courier') easypack_get_courier_disabled = true;
if (cb_split[4] != 'prepared' && cb_split[4] != 'ReadyToBeSent') easypack_get_courier_disabled = true;
}
});
if (easypack_get_courier_count == 0) easypack_get_courier_disabled = true;
jQuery('#easypack_get_courier').attr('disabled',easypack_get_courier_disabled);
});
</script>

View File

@@ -0,0 +1,196 @@
<?php
/**
* EasyPack AJAX
*
* @author WPDesk
* @category Admin
* @package EasyPack
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_AJAX' ) ) :
class EasyPack_AJAX {
/**
* Ajax handler
*/
public static function init() {
add_action( 'wp_ajax_easypack', array( __CLASS__, 'ajax_easypack' ) );
add_action( 'admin_head', array( __CLASS__, 'wp_footer_easypack_nonce' ) );
}
public static function wp_footer_easypack_nonce() {
?>
<script type="text/javascript">
var easypack_nonce = '<?php echo wp_create_nonce('easypack_nonce'); ?>';
</script>
<?php
}
public static function ajax_easypack() {
check_ajax_referer( 'easypack_nonce', 'security' );
if ( isset( $_POST['easypack_action'] ) ) {
$action = $_POST['easypack_action'];
if ( $action == 'returns_page_create' ) {
self::create_returns_page();
}
if ( $action == 'dispatch_point' ) {
self::dispatch_point();
}
if ( $action == 'parcel_machines_create_package' ) {
self::parcel_machines_create_package();
}
if ( $action == 'parcel_machines_cancel_package' ) {
self::parcel_machines_cancel_package();
}
if ( $action == 'parcel_machines_get_stickers' ) {
self::parcel_machines_get_stickers();
}
if ( $action == 'parcel_machines_cod_get_payment_status' ) {
self::parcel_machines_cod_get_payment_status();
}
if ( $action == 'parcel_machines_cod_create_package' ) {
self::parcel_machines_cod_create_package();
}
if ( $action == 'parcel_machines_cod_cancel_package' ) {
self::parcel_machines_cod_cancel_package();
}
if ( $action == 'crossborder_parcel_machines_create_package' ) {
self::crossborder_parcel_machines_create_package();
}
if ( $action == 'crossborder_parcel_machines_processing' ) {
self::crossborder_parcel_machines_processing();
}
if ( $action == 'crossborder_courier_create_package' ) {
self::crossborder_courier_create_package();
}
if ( $action == 'crossborder_courier_processing' ) {
self::crossborder_courier_processing();
}
if ( $action == 'easypack_dispatch_order' ) {
self::easypack_dispatch_order();
}
if ( $action == 'easypack_create_stickers' ) {
self::create_stickers();
}
}
}
public static function create_returns_page() {
$postarr = array( 'post_type' => 'page' );
$postarr['post_status'] = 'publish';
$post_content = __( 'Returns page content here', EasyPack::$text_domain );;
$postarr['post_title'] = __( 'InPost Returns', EasyPack::$text_domain );
$country = $_POST['country'];
$country = strtoupper( str_replace( 'test-', '', $country ) );
if ( $country == 'GB' ) {
$postarr['post_title'] = 'InPost Returns';
$post_content = '';
$post_content .= 'Returns available 24/7 from ANY parcel locker.<br/><br/>';
$post_content .= 'Simple, convenient and no line-ups!<br/><br/>';
$post_content .= '<a href="https://returns.inpost24.ca/" class="inpost_returns_button" target="_blank">' . 'Return now' . '</a>';
}
if ( $country == 'PL' ) {
$postarr['post_title'] = 'Szybkie zwroty InPost';
$post_content = '';
$post_content .= 'Zwracaj zamówienia przez ponad 1 100 Paczkomatów w całej Polsce.<br/><br/>';
$post_content .= 'Szybko, wygodnie, bez kolejek!<br/><br/>';
$post_content .= '<a href="https://www.szybkiezwroty.pl/" class="inpost_returns_button" target="_blank">' . 'Przejdź do szybkich zwrotów' . '</a>';
}
$postarr['post_content'] = '<img style="border:none; float:right;" src="' . trailingslashit( EasyPack()->getPluginUrl() ) . 'assets/images/logo/small/white.png' . '" />';
$postarr['post_content'] .= $post_content;
$page_id = wp_insert_post( $postarr );
if ( $page_id ) {
$page = get_page( $page_id );
$ret = array( 'page_id' => $page_id );
$ret['page_title'] = $page->post_title;
$ret['message'] = __( 'Returns page created.', EasyPack::$text_domain );
echo json_encode( $ret );
}
else {
echo 0;
}
wp_die();
}
public static function dispatch_point() {
$dispatch_point_name = $_POST['dispatch_point_name'];
try {
$dispatch_point = EasyPack_API()->dispatch_point( $dispatch_point_name );
echo json_encode( $dispatch_point );
}
catch ( Exception $e ) {
echo 0;
}
wp_die();
}
public static function parcel_machines_create_package() {
EasyPack_Shippng_Parcel_Machines::ajax_create_package();
}
public static function parcel_machines_cancel_package() {
EasyPack_Shippng_Parcel_Machines::ajax_cancel_package();
}
public static function parcel_machines_get_stickers() {
EasyPack_Shippng_Parcel_Machines::ajax_get_stickers();
}
public static function parcel_machines_cod_get_payment_status() {
EasyPack_Shippng_Parcel_Machines_COD::ajax_get_payment_status();
}
public static function parcel_machines_cod_create_package() {
EasyPack_Shippng_Parcel_Machines_COD::ajax_create_package();
}
public static function parcel_machines_cod_cancel_package() {
EasyPack_Shippng_Parcel_Machines_COD::ajax_cancel_package();
}
public static function crossborder_parcel_machines_create_package() {
EasyPack_Shippng_Cross_Border_Parcel_Machines::ajax_create_package();
}
public static function crossborder_parcel_machines_processing() {
EasyPack_Shippng_Cross_Border_Parcel_Machines::ajax_processing();
}
public static function crossborder_courier_create_package() {
EasyPack_Shippng_Cross_Border_Courier::ajax_create_package();
}
public static function crossborder_courier_processing() {
EasyPack_Shippng_Cross_Border_Courier::ajax_processing();
}
public static function easypack_dispatch_order() {
EasyPack_Shippng_Parcel_Machines::ajax_dispatch_order();
}
public static function create_stickers() {
EasyPack_Helper()->ajax_create_stickers();
}
}
endif;
EasyPack_AJAX::init();

View File

@@ -0,0 +1,281 @@
<?php
/**
* EasyPack API
*
* @author WPDesk
* @category Admin
* @package EasyPack
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_API' ) ) :
class EasyPack_API {
protected static $instance;
protected $login;
protected $token;
protected $cache_period = DAY_IN_SECONDS;
public function __construct()
{
$this->login = get_option( 'easypack_login' );
$this->token = get_option( 'easypack_token' );
$this->api_url = get_option( 'easypack_api_url' );
}
public static function EasyPack_API() {
if (self::$instance === null) {
self::$instance = new self();
}
return self::$instance;
}
public function clear_cache() {
delete_option( 'easypack_cache_machines' );
delete_option( 'easypack_cache_machines_options' );
delete_option( 'easypack_cache_machines_cod_options' );
delete_option( 'easypack_cache_machines_time' );
}
function get_error( $errors ) {
$ret = '';
if ( is_array( $errors ) ) {
$first = true;
foreach ( $errors as $key => $error ) {
if ( ! $first ) {
$ret .= ', ';
}
else {
$ret = ': ';
}
$ret .= $key;
if ( is_array( $error ) ) {
$ret .= ': ';
foreach ($error as $e ) {
$ret .= $e;
}
}
else {
$ret .= ': ' . $error;
}
$first = false;
}
}
else {
$ret = $errors;
}
return $ret;
}
public function post( $path, $args = array(), $method = 'POST' ) {
$url = untrailingslashit( $this->api_url ) . str_replace( ' ', '%20', str_replace( '@', '%40', $path ) );
$request_args = array( 'timeout' => 30, 'method' => $method );
$request_args['headers'] = array( 'Authorization' => 'Bearer ' . $this->token, 'Content-Type' => 'application/json' );
$request_args['body'] = $args;
$request_args['body'] = json_encode($args);
$response = wp_remote_post( $url, $request_args );
if ( is_wp_error( $response ) ) {
throw new Exception( $response->get_error_message() );
}
else {
$ret = json_decode( $response['body'], true );
if ( isset( $ret['status_code']) ) {
$errors = '';
if ( isset( $ret['errors'] ) ) {
$errors = $this->get_error( $ret['errors'] );
}
throw new Exception( $ret['message'] . $errors, $ret['status_code'] );
}
return $ret;
}
}
public function put( $path, $args = array(), $method = 'PUT' ) {
return $this->post( $path, $args, 'PUT' );
}
public function get( $path, $args = array() ) {
$url = untrailingslashit( $this->api_url ) . str_replace( ' ', '%20', str_replace( '@', '%40', $path ) );
$request_args = array( 'timeout' => 30 );
$request_args['headers'] = array( 'Authorization' => 'Bearer ' . $this->token, 'Content-Type' => 'application/json' );
$response = wp_remote_get( $url, $request_args );
if ( is_wp_error( $response ) ) {
throw new Exception( $response->get_error_message() );
}
else {
if ( $response['headers']['content-type'] == 'application/pdf' ) {
$ret = $response['body'];
}
else {
$ret = json_decode( $response['body'], true );
if ( isset( $ret['status_code']) ) {
$errors = '';
if ( isset( $ret['errors'] ) ) {
$errors = ': ' . implode(', ', $ret['errors'] );
}
throw new Exception( $ret['message'] . $errors, $ret['status_code'] );
}
}
return $ret;
}
}
public function ping() {
}
public function machines( $throw_excetion = false ) {
$machines = get_option( 'easypack_cache_machines' );
if ( ! $machines || intval( get_option( 'easypack_cache_machines_time' ) ) < time() ) {
try {
$response = $this->get( '/v4/machines' );
$machines = $response['_embedded']['machines'];
delete_option( 'easypack_cache_machines' );
add_option( 'easypack_cache_machines', $machines, '', false );
update_option( 'easypack_cache_machines_time', time()+$this->cache_period );
}
catch ( Exception $e ) {
if ( $throw_excetion ) throw $e;
if ( ! $machines ) {
$machines = array();
}
}
}
return $machines;
}
/**
* @deprecated
*/
public function machines_options() {
return [];
}
public function machines_cod_options() {
$machines_cod_options = get_option( 'easypack_cache_machines_cod_options' );
if ( ! $machines_cod_options || intval( get_option( 'easypack_cache_machines_time' ) ) < time() ) {
try {
$machines = $this->machines( true );
$machines_cod_options = array();
foreach ( $machines as $machine ) {
/* machine is cod? */
$machines_cod_options[$machine['id']] = '[' . $machine['id'] . '] ' . $machine['address_str'];
}
delete_option( 'easypack_cache_machines_cod_options' );
add_option( 'easypack_cache_machines_cod_options', $machines_cod_options, '', false );
}
catch ( Exception $e ) {
if ( ! $machines_cod_options ) {
$machine_cod_options = array( '9' => $e->getMessage() );
}
}
}
return $machines_cod_options;
}
public function customer() {
$response = $this->get( '/v4/customers/' . $this->login );
$customer = $response;
return $customer;
}
public function update_customer( $args ) {
$response = $this->put( '/v4/customers/' . $this->login, $args );
$customer = $response;
return $customer;
}
public function dispatch_point( $dispatch_point_name ) {
$response = $this->get( '/v4/dispatch_points/' . $dispatch_point_name );
$dispatch_point = $response;
return $dispatch_point;
}
public function customer_dispatch_points() {
$response = $this->get( '/v4/customers/' . $this->login . '/dispatch_points' );
$dispatch_points = $response['_embedded']['dispatch_points'];
while ( isset( $response['_links']['next'] ) && isset( $response['_links']['next']['href'] ) && $response['_links']['next']['href'] != '' ) {
$response = $this->get( $response['_links']['next']['href'] );
$dispatch_points = array_merge( $dispatch_points, $response['_embedded']['dispatch_points']);
}
return $dispatch_points;
}
public function customer_dispatch_points_options() {
$customer_dispatch_points_options = array();
try {
$customer_dispatch_points = $this->customer_dispatch_points();
foreach ( $customer_dispatch_points as $dispatch_point ) {
$customer_dispatch_points_options[$dispatch_point['name']] = '[' . $dispatch_point['name'] . '] ' . $dispatch_point['address_str'];
}
}
catch ( Exception $e ) {
$customer_dispatch_points_options['-1'] = $e->getMessage();
}
return $customer_dispatch_points_options;
}
public function update_default_dispatch_point( $args ) {
try {
$dispatch_point = $this->dispatch_point( $args['name'] );
/* update dispatch point */
$response = $this->put( '/v4/dispatch_points/' . $args['name'], $args );
}
catch ( Exception $e ) {
if ( $e->getCode() == '404' ) { /* dispatch point not found - create new */
$response = $this->post( '/v4/customers/' . $this->login . '/dispatch_points', $args );
update_option('easypack_default_dispatch_point', $args['name']);
}
else {
throw $e;
}
}
}
public function customer_parcel_create( $args ) {
$response = $this->post( '/v4/customers/' . $this->login . '/parcels', $args );
return $response;
}
public function customer_parcel_cancel( $parcel_id ) {
$response = $this->post( '/v4/parcels/' . $parcel_id . '/cancel', $args );
return $response;
}
public function customer_parcel_pay( $parcel_id ) {
$response = $this->post( '/v4/parcels/' . $parcel_id . '/pay', $args );
return $response;
}
public function customer_parcel_sticker( $parcel_id ) {
$response = $this->get( '/v4/parcels/' . $parcel_id . '/sticker', $args );
return $response;
}
}
function EasyPack_API() {
return EasyPack_API::EasyPack_API();
}
endif;

View File

@@ -0,0 +1,447 @@
<?php
/**
* EasyPack API
*
* @author WPDesk
* @category Admin
* @package EasyPack
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_API' ) ) :
class EasyPack_API {
protected static $instance;
protected $login;
protected $token;
protected $cache_period = DAY_IN_SECONDS;
public function __construct() {
$this->login = get_option( 'easypack_login' );
$this->token = get_option( 'easypack_token' );
$this->api_url = $this->make_api_url( get_option( 'easypack_api_url' ) );
}
public static function EasyPack_API() {
if (self::$instance === null) {
self::$instance = new self();
}
return self::$instance;
}
public function make_api_url( $url ) {
$url = untrailingslashit( $url );
$parsed_url = parse_url( $url );
if ( !isset( $parsed_url['path'] ) || trim( $parsed_url['path'] ) == '' ) {
$url .= '/v4';
}
return $url;
}
public function clear_cache() {
$this->login = get_option( 'easypack_login' );
$this->token = get_option( 'easypack_token' );
$this->api_url = $this->make_api_url( get_option( 'easypack_api_url' ) );
//
delete_option( 'easypack_cache_machines' );
delete_option( 'easypack_cache_machines_options' );
delete_option( 'easypack_cache_machines_cod_options' );
delete_option( 'easypack_cache_machines_time' );
//delete_option( 'easypack_cod_enabled' );
}
function translate_error( $error ) {
$errors = array(
'receiver_email' => __( 'Recipient e-mail', EasyPack::$text_domain ),
'receiver_phone' => __( 'Recipient phone', EasyPack::$text_domain ),
'address' => __( 'Address', EasyPack::$text_domain ),
'phone' => __( 'Phone', EasyPack::$text_domain ),
'email' => __( 'Email', EasyPack::$text_domain ),
'post_code' => __( 'Post code', EasyPack::$text_domain ),
'postal_code' => __( 'Post code', EasyPack::$text_domain ),
'default_machine_id' => __( 'Default parcel locker', EasyPack::$text_domain ),
'not_an_email' => __( 'not valid', EasyPack::$text_domain ),
'invalid' => __( 'invalid', EasyPack::$text_domain ),
'not_found' => __( 'not found', EasyPack::$text_domain ),
'invalid_format' => __( 'invalid format', EasyPack::$text_domain ),
'required, invalid_format' => __( 'required', EasyPack::$text_domain ),
'too_many_characters' => __( 'too many characters', EasyPack::$text_domain ),
'You have not enough funds to pay for this parcel' => __( 'Can not create sticker. You have not enough funds to pay for this parcel', EasyPack::$text_domain ),
'Access to this resource is forbidden' => __( 'Invalid login or token', EasyPack::$text_domain ),
'Sorry, access to this resource is forbidden' => __( 'Invalid login', EasyPack::$text_domain ),
'Token is missing or invalid' => __( 'Token is missing or invalid', EasyPack::$text_domain ),
'Box machine name cannot be empty' => __( 'Parcel Locker is empty. Please fill in this field.', EasyPack::$text_domain ),
'Default parcel machine' => __( 'Default send parcel locker: ', EasyPack::$text_domain ),
'The transaction can not be completed due to the balance of your account' => __( 'The transaction can not be completed due to the balance of your account', EasyPack::$text_domain ),
);
if ( isset( $errors[$error] ) ) return $errors[$error];
return $error;
}
function get_error_array( $errors ) {
$ret = '';
if ( is_array( $errors ) ) {
foreach ( $errors as $key => $value ) {
if ( is_integer( $key ) ) {
$ret .= $this->get_error_array( $value ) . ', ';
}
else {
$ret .= $key . ': ' . $this->get_error_array( $value ) . ', ';
}
}
}
else {
$ret .= $errors;
}
if ( $ret != '' ) {
$ret = '<ul>' . $ret . '</ul>';
}
return trim( trim( $ret ), ',' );
}
function get_error( $errors ) {
$ret = '';
foreach ( $errors as $key => $error ) {
$ret .= '<li>' . $this->translate_error( $key ) . ': ';
foreach ( $error as $error_detail ) {
if ( is_array( $error_detail ) ) {
$ret .= $this->get_error( $error_detail);
}
else {
$ret .= $this->translate_error( $error_detail ) . ', ';
}
}
$ret = trim( trim( $ret ) , ',');
$ret .= '</li>';
}
if ( $ret != '' ) {
$ret = '<ul class="easypack_error">' . $ret . '</ul>';
}
return trim( trim( $ret ), ',' );
}
public function post( $path, $args = array(), $method = 'POST' ) {
$url = untrailingslashit( $this->api_url ) . str_replace( ' ', '%20', str_replace( '@', '%40', $path ) );
$request_args = array( 'timeout' => 30, 'method' => $method );
$request_args['headers'] = array( 'Authorization' => 'Bearer ' . $this->token, 'Content-Type' => 'application/json' );
$request_args['body'] = $args;
$request_args['body'] = json_encode($args);
$response = wp_remote_post( $url, $request_args );
if ( is_wp_error( $response ) ) {
throw new Exception( $response->get_error_message() );
}
else {
$ret = json_decode( $response['body'], true );
if ( ! is_array( $ret ) ) {
throw new Exception( __('Bad API response. Check API URL', EasyPack::$text_domain ), 503 );
}
else {
if ( isset( $ret['status_code']) ) {
$errors = '';
if ( isset( $ret['errors'] ) && count( $ret['errors'] ) ) {
if ( is_array( $ret['errors'] ) ) {
if ( count( $ret['errors'] ) )
$errors = $this->get_error( $ret['errors'] );
}
else {
$errors = ': ' . $ret['errors'];
}
}
else {
$errors = $this->translate_error( $ret['message'] );
}
throw new Exception( $errors, $ret['status_code'] );
}
}
return $ret;
}
}
public function put( $path, $args = array(), $method = 'PUT' ) {
return $this->post( $path, $args, 'PUT' );
}
public function get( $path, $args = array() ) {
$url = untrailingslashit( $this->api_url ) . str_replace( ' ', '%20', str_replace( '@', '%40', $path ) );
$request_args = array( 'timeout' => 30 );
$request_args['headers'] = array( 'Authorization' => 'Bearer ' . $this->token, 'Content-Type' => 'application/json' );
$response = wp_remote_get( $url, $request_args );
if ( is_wp_error( $response ) ) {
throw new Exception( $response->get_error_message() );
}
else {
if ( $response['headers']['content-type'] == 'application/pdf' ) {
$ret = $response['body'];
return $ret;
}
else {
$ret = json_decode( $response['body'], true );
//var_dump($response);die;
if ( ! is_array( $ret ) ) {
throw new Exception( __('Bad API response. Check API URL', EasyPack::$text_domain ), 503 );
}
else {
if ( isset( $ret['status_code']) ) {
$errors = '';
if ( isset( $ret['errors'] ) && count( $ret['errors'] ) ) {
if ( is_array( $ret['errors'] ) ) {
if ( count( $ret['errors'] ) )
$errors = $this->get_error( $ret['errors'] );
}
else {
$errors = ': ' . $ret['errors'];
}
}
else {
$errors = $this->translate_error( $ret['message'] );
if ( $errors == '-' ) {
$res = $response['response'];
$errors = $this->translate_error( $res['message'] );
//$errors = $this->translate_error( $res['message'] . ' ' . $url );
}
}
throw new Exception( $errors, $ret['status_code'] );
}
}
return $ret;
}
}
}
public function ping() {
$this->parcels();
}
public function machines( $throw_excetion = false ) {
$machines = get_option( 'easypack_cache_machines' );
if ( ! $machines || intval( get_option( 'easypack_cache_machines_time' ) ) < time() ) {
try {
$response = $this->get( '/machines' );
$machines = $response['_embedded']['machines'];
delete_option( 'easypack_cache_machines' );
add_option( 'easypack_cache_machines', $machines, '', false );
update_option( 'easypack_cache_machines_time', time()+$this->cache_period );
}
catch ( Exception $e ) {
if ( $throw_excetion ) throw $e;
if ( ! $machines ) {
$machines = array();
}
}
}
return $machines;
}
/**
* @deprecated
*/
public function machines_options() {
return[];
}
public function machines_cod_options() {
$machines_cod_options = get_option( 'easypack_cache_machines_cod_options' );
if ( ! $machines_cod_options || intval( get_option( 'easypack_cache_machines_time' ) ) < time() ) {
try {
$machines = $this->machines( true );
$machines_cod_options = array();
foreach ( $machines as $machine ) {
if ( $machine['payment_type'] != '0' ) /* 0 - payment not avaliable */
$machines_cod_options[$machine['id']] = '[' . $machine['id'] . '] ' . $machine['address_str'];
}
delete_option( 'easypack_cache_machines_cod_options' );
add_option( 'easypack_cache_machines_cod_options', $machines_cod_options, '', false );
}
catch ( Exception $e ) {
if ( ! $machines_cod_options ) {
$machine_cod_options = array( '9' => $e->getMessage() );
}
}
}
return $machines_cod_options;
}
public function customer() {
$response = $this->get( '/customers/' . $this->login );
$customer = $response;
return $customer;
}
public function update_customer( $args ) {
$response = $this->put( '/customers/' . $this->login, $args );
$customer = $response;
return $customer;
}
public function dispatch_point( $dispatch_point_name ) {
$response = $this->get( '/dispatch_points/' . $dispatch_point_name );
$dispatch_point = $response;
return $dispatch_point;
}
public function customer_dispatch_points() {
$response = $this->get( '/customers/' . $this->login . '/dispatch_points' );
$dispatch_points = $response['_embedded']['dispatch_points'];
while ( isset( $response['_links']['next'] ) && isset( $response['_links']['next']['href'] ) && $response['_links']['next']['href'] != '' ) {
$response = $this->get( $response['_links']['next']['href'] );
$dispatch_points = array_merge( $dispatch_points, $response['_embedded']['dispatch_points']);
}
return $dispatch_points;
}
public function customer_dispatch_points_options() {
$customer_dispatch_points_options = array();
try {
$customer_dispatch_points = $this->customer_dispatch_points();
foreach ( $customer_dispatch_points as $dispatch_point ) {
$customer_dispatch_points_options[$dispatch_point['name']] = '[' . $dispatch_point['name'] . '] ' . $dispatch_point['address_str'];
}
}
catch ( Exception $e ) {
$customer_dispatch_points_options['-1'] = $e->getMessage();
}
return $customer_dispatch_points_options;
}
public function update_default_dispatch_point( $args ) {
try {
$dispatch_point = $this->dispatch_point( $args['name'] );
/* update dispatch point */
$response = $this->put( '/dispatch_points/' . $args['name'], $args );
}
catch ( Exception $e ) {
if ( $e->getCode() == '404' ) { /* dispatch point not found - create new */
$response = $this->post( '/customers/' . $this->login . '/dispatch_points', $args );
update_option('easypack_default_dispatch_point', $args['name']);
}
else {
throw $e;
}
}
}
public function dispatch_order( $dispatch_point, $args ) {
$response = $this->post( '/dispatch_points/' . $dispatch_point . '/dispatch_orders', $args );
return $response;
}
public function parcels() {
$response = $this->get( '/customers/' . $this->login . '/parcels' );
return $response;
}
public function customer_parcel_create( $args ) {
$response = $this->post( '/customers/' . $this->login . '/parcels', $args );
return $response;
}
public function customer_parcel_cancel( $parcel_id ) {
$response = $this->post( '/parcels/' . $parcel_id . '/cancel', $args );
return $response;
}
public function customer_parcel_pay( $parcel_id, $args=[]) {
$response = $this->post( '/parcels/' . $parcel_id . '/pay', $args );
return $response;
}
public function customer_parcel_sticker( $parcel_id ) {
if ( $this->api_country() == 'IT' || $this->api_country() == 'FR' ) {
$response = $this->get( '/parcels/' . $parcel_id . '/sticker?type=A6P', $args );
}
else {
$response = $this->get( '/parcels/' . $parcel_id . '/sticker', $args );
}
return $response;
}
public function customer_parcel( $parcel_id ) {
$response = $this->get( '/parcels/' . $parcel_id );
$parcel = $response;
return $parcel;
}
public function customer_pricelists() {
$response = $this->get( '/customers/' . $this->login . '/pricelists' );
return $response;
}
public function dispatch_points_dispatch_orders( $dispatch_point, $args ) {
$response = $this->put( '/dispatch_point/' . $dispatch_point . '/dispatch_orders' );
return $response;
}
public function api_country() {
return strtoupper( str_replace( 'test-', '', get_option( 'easypack_api_country', '--' ) ) );
}
public function validate_phone( $phone ) {
if ( $this->api_country() == 'IT' ) {
if ( preg_match("/\A3\d{8,9}\z/", $phone) ) {
return true;
}
else {
return __('Invalid phone number. Valid phone number must contains 9 or 10 digits and must begins with 3.', EasyPack::$text_domain);
}
}
if ( $this->api_country() == 'FR' ) {
//if ( preg_match("/\A(6|7)\d{8}\z/", $phone) ) {
if ( preg_match("/\A0?(6|7)\d{8}\z/", $phone) ) {
return true;
}
else {
return __('Invalid phone number. Valid phone number must contains 9 digits and must begins with 6 or 7.', EasyPack::$text_domain);
}
}
if ( $this->api_country() == 'GB' ) {
if ( preg_match("/\A\d{10}\z/", $phone) ) {
return true;
}
else {
return __('Invalid phone number. Valid phone number must contains 10 digits.', EasyPack::$text_domain);
}
}
if ( $this->api_country() == 'PL' ) {
if ( preg_match("/\A[1-9]\d{8}\z/", $phone) ) {
return true;
}
else {
return __('Invalid phone number. Valid phone number must contains 9 digits and must not begins with 0.', EasyPack::$text_domain);
}
}
return __('Invalid phone number.', EasyPack::$text_domain);
}
}
function EasyPack_API() {
return EasyPack_API::EasyPack_API();
}
endif;

View File

@@ -0,0 +1,365 @@
<?php
/**
* EasyPack Helper
*
* @author WPDesk
* @category
* @package EasyPack
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! class_exists( 'EasyPack_Helper' ) ) :
class EasyPack_Helper
{
const API_GEOWIDGET_URL_PRODUCTION_PL = 'https://api-pl-points.easypack24.net/v1';
const API_GEOWIDGET_URL_SANDBOX_PL = 'https://sandbox-api-pl-points.easypack24.net/v1';
const API_GEOWIDGET_URL_PRODUCTION_UK = 'https://api-uk-points.easypack24.net/v1';
const API_GEOWIDGET_URL_SANDBOX_UK = 'https://sandbox-api-uk-points.easypack24.net/v1';
const API_GEOWIDGET_URL_PRODUCTION_CSS = 'https://geowidget.easypack24.net/css/easypack.css';
const API_GEOWIDGET_URL_SANDBOX_CSS = 'https://sandbox-geowidget.easypack24.net/css/easypack.css';
protected static $instance;
public function __construct()
{
add_filter('query_vars', array($this, 'query_vars'));
add_action('parse_request', array($this, 'parse_request'));
add_action('woocommerce_before_my_account', array($this, 'woocommerce_before_my_account'));
add_filter('woocommerce_screen_ids', array($this, 'woocommerce_screen_ids'));
add_action('admin_notices', array($this, 'admin_notices'));
add_action('admin_enqueue_scripts', [$this, 'include_geowidget_settings'], 76);
add_action('admin_enqueue_scripts', [$this, 'include_geowidget_metabox'], 77);
add_action('admin_footer', [$this, 'adminFooter'], 77);
}
/**
*
* @return string
*/
public function getPluginUrl()
{
return esc_url(trailingslashit($this->_pluginUrl));
}
public static function get_version()
{
if ( ! function_exists('get_plugin_data') ) {
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
$plugin_data = get_plugin_data( plugin_dir_path( __DIR__ ) . 'woo-inpost.php' );
return $plugin_data['Version'];
}
public function include_geowidget_settings()
{
if (is_admin()
&& isset($_GET[ 'tab' ])
&& 'easypack_general' === $_GET[ 'tab' ] ) {
wp_enqueue_script('geowidget-admin', EasyPack::$instance->getPluginUrl()
. 'assets/js/admin-geowidget-settings.js', array(), self::get_version());
wp_enqueue_style('geowidget-4.5-css',
self::API_GEOWIDGET_URL_PRODUCTION_CSS);
}
}
public
function adminFooter()
{
echo '<script async src="https://geowidget.easypack24.net/js/sdk-for-javascript.js"></script>';
}
public function include_geowidget_metabox()
{
if (is_admin()
&& isset($_GET[ 'post' ])
&& 'shop_order' === get_post_type($_GET[ 'post' ]) ) {
wp_enqueue_script('geowidget-admin',
EasyPack::$instance->getPluginUrl()
. 'assets/js/admin-geowidget-metabox.js', array(), self::get_version());
wp_enqueue_style('geowidget-4.5-css',
self::API_GEOWIDGET_URL_PRODUCTION_CSS);
}
}
public static function EasyPack_Helper() {
if (self::$instance === null) {
self::$instance = new self();
}
return self::$instance;
}
public function write_stickers_to_file( $stickers = array() ) {
$temp_dir = trailingslashit( get_temp_dir() );
if ( sizeof( $stickers ) == 1 ) {
$temp_file = tempnam( $temp_dir, 'ep' );
$fp = fopen( $temp_file, 'w');
fwrite( $fp, $stickers[0] );
fclose( $fp );
}
else {
$files = array();
foreach ( $stickers as $sticker ) {
$temp_file = tempnam( $temp_dir, 'ep' );
$fp = fopen( $temp_file, 'w');
fwrite( $fp, $sticker );
fclose( $fp );
$files[] = $temp_file;
}
$temp_file = tempnam( $temp_dir, 'ep' );
$pdf = new ConcatPdf();
$pdf->setFiles( $files );
$pdf->concat();
$pdf->Output( $temp_file, 'F' );
foreach ( $files as $file ) {
unlink( $file );
}
}
return $temp_file;
}
public function get_file( $file, $file_name, $content_type = '' ) {
header( 'Content-type: ' . $content_type );
header( 'Content-Disposition: attachment; filename="' . $file_name . '"' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Content-Length: ' . filesize($file) );
header( 'Accept-Ranges: bytes' );
@readfile($file);
unlink( $file );
}
public function ajax_create_stickers() {
$ret = array( 'status' => 'ok' );
$parcels = $_POST['parcels'];
$ret['parcels'] = $parcels;
$stickers = array();
foreach ( $parcels as $parcel ) {
$order_parcel = explode( '.', $parcel );
$api = $order_parcel[0];
$order_id = $order_parcel[1];
$parcel_id = $order_parcel[2];
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
try {
foreach ( $easypack_parcels as $key => $easypack_parcel ) {
if ( $api == 'crossborder' ) {
if ( $easypack_parcel['crossborder_data']['id'] == $parcel_id ) {
$stickers[] = CrossBorder_API()->pdf_label( $easypack_parcel['crossborder_data']['id'], true );
}
}
else {
if ( $easypack_parcel['easypack_data']['id'] == $parcel_id ) {
if ( $easypack_parcel['easypack_data']['status'] == 'created' ) {
$easypack_data = EasyPack_API()->customer_parcel( $easypack_parcel['easypack_data']['id'] );
if ( $easypack_data['status'] == 'created' ) {
$easypack_data = EasyPack_API()->customer_parcel_pay( $easypack_data['id'] );
$easypack_parcels[$key]['easypack_data'] = $easypack_data;
$easypack_parcel['easypack_data'] = $easypack_data;
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
update_post_meta( $order_id, '_easypack_status', 'prepared' );
}
}
$stickers[] = EasyPack_API()->customer_parcel_sticker( $easypack_parcel['easypack_data']['id'] );
}
}
}
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] = $e->getMessage();
}
$tmp_file = $this->write_stickers_to_file( $stickers );
}
$ret['file'] = basename($tmp_file);
echo json_encode( $ret );
wp_die();
}
/**
* Allow for custom query variables
*/
public function query_vars( $query_vars ) {
$query_vars[] = 'easypack_download';
return $query_vars;
}
/**
* Parse the request
*/
public function parse_request(&$wp) {
if( array_key_exists( 'easypack_download', $wp->query_vars))
{
if ( $_GET['easypack_parcel_machines_stickers'] == '1' ) {
$cross_border = 0;
if ( isset( $_GET['cross_border'] ) ) {
$cross_border = $_GET['cross_border'];
}
if ( $cross_border ) {
EasyPack_Shippng_Cross_Border_Parcel_Machines::get_stickers();
}
else {
EasyPack_Shippng_Parcel_Machines::get_stickers();
}
}
if ( isset( $_GET['easypack_file'] ) ) {
$temp_dir = trailingslashit( get_temp_dir() );
$file = $temp_dir . $_GET['easypack_file'];
$this->get_file( $file, __( 'stickers', EasyPack::$text_domain ) . '_' . time() . '.pdf', 'application/pdf' );
}
if ( isset( $_GET['easypack_manifest'] ) ) {
EasyPack_Dispatch_Orders()->create_easypack_manifest( $_GET['easypack_manifest'] );
}
if ( isset( $_GET['crossborder_manifest'] ) ) {
EasyPack_Dispatch_Orders()->get_crossborder_manifest( $_GET['crossborder_manifest'] );
}
exit;
}
}
public function get_api_url( $country = FALSE ) {
if ( ! $country ) {
$country = get_option('easypack_api_country');
}
$api_url = 'https://api-' . $country . '.easypack24.net';
$api_url = str_replace( 'api-test', 'test-api', $api_url );
return $api_url;
}
public function get_tracking_url( $country = FALSE ) {
$urls = array(
'pl' => 'https://twoj.inpost.pl/pl/znajdz-przesylke?parcel=',
'fr' => 'https://inpost24.fr/fr/suivi-du-colis?parcel=',
'it' => 'https://inpost24.it/it/rintraccia-il-pacco?parcel=',
'gb' => 'http://sandbox-pm.inpost.co.uk/track-parcel?parcel=',
'pl-cb' => 'https://twoj.inpost.pl/pl/przesylki/cross-border?parcel=', /* cross border */
);
if ( ! $country ) {
$country = get_option('easypack_api_country');
}
$country = str_replace( 'test-', '', $country );
return $urls[$country];
}
public function get_order_weight( $order ) {
$weight = 0;
if ( sizeof( $order->get_items() ) > 0 ) {
foreach( $order->get_items() as $item ) {
if ( $item['product_id'] > 0 ) {
$_product = $order->get_product_from_item( $item );
if ( ! $_product->is_virtual() ) {
$weight += $_product->get_weight() * $item['qty'];
}
}
}
}
return $weight;
}
public function get_weight_option( $weight, $options ) {
$ret = -1;
$options = array_reverse( $options, true );
foreach ( $options as $val => $option ) {
if ( floatval( $weight ) <= floatval( $val ) ) {
$ret = $val;
}
}
return $ret;
}
function get_easypack_parcel_data( $parcels, $id ) {
$ret = false;
foreach ( $parcels as $parcel ) {
if ( $parcel['easypack_data']['id'] == $id ) {
$ret = $parcel['easypack_data'];
}
}
return $ret;
}
function get_crossborder_parcel_data( $parcels, $id ) {
$ret = false;
foreach ( $parcels as $parcel ) {
if ( $parcel['crossborder_data']['id'] == $id ) {
$ret = $parcel['crossborder_data'];
}
}
return $ret;
}
function woocommerce_before_my_account() {
if ( get_option( 'easypack_returns_page' ) && trim ( get_option( 'easypack_returns_page' ) ) != '' ) {
$page = get_page( get_option( 'easypack_returns_page' ) );
if ( $page ) {
$img_src = EasyPack()->getPluginUrl(). '/assets/images/logo/small/white.png';
$args = array( 'returns_page' => get_page_link( get_option( 'easypack_returns_page' ) ), 'returns_page_title' => $page->post_title, 'img_src' => $img_src );
wc_get_template( 'myaccount/before-my-account.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
}
function woocommerce_screen_ids( $screen_ids ) {
$screen_ids[] = 'inpost_page_easypack_shipment';
return $screen_ids;
}
function admin_notices() {
$easypack_api_error_message = get_option( 'easypack_api_error_message', false );
if ( $easypack_api_error_message && ! isset( $_POST['easypack_api_country'] ) ) {
$screen = get_current_screen();
$in_settings = false;
if ( $screen->id == 'woocommerce_page_wc-settings' && isset( $_GET['tab'] ) && $_GET['tab'] == 'easypack_general' ) {
$in_settings = true;
}
?>
<div class="error">
<p>
<?php _e( 'InPost API configuration error: ', EasyPack::$text_domain ); ?>
<b><?php echo $easypack_api_error_message; ?></b>.<br/>
<?php if ( ! $in_settings ) : ?>
<?php printf( __( 'Go to %sconfiguration%s to fix it.', EasyPack::$text_domain ), '<a href="' . admin_url('admin.php?page=wc-settings&tab=easypack_general') . '">', '</a>' ); ?>
<?php endif; ?>
</p>
</div>
<?php
}
}
}
function EasyPack_Helper() {
return EasyPack_Helper::EasyPack_Helper();
}
EasyPack_Helper();
endif;

View File

@@ -0,0 +1,3 @@
<?php
// Silence is golden.
?>

View File

@@ -0,0 +1,3 @@
<?php
// Silence is golden.
?>

View File

@@ -0,0 +1,387 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
//set_site_transient('update_plugins', null);
if (!class_exists('inspire_Plugin4'))
{
/**
* Base plugin class for Inspire Labs plugins
*
* @author Krzysiek
*
*/
abstract class inspire_Plugin4
{
const VERSION = '4.0';
const DEFAULT_TOKEN = '350299001f1cbf2c8f3af7ca3296f0a3';
protected $_pluginNamespace = "";
protected $__wpdeskUpdateUrl = 'http://wpdesk.pl/wp-content/';
protected $_pluginPath;
protected $_templatePath;
protected $_pluginFilePath;
protected $_pluginUrl;
protected $_defaultViewArgs; // default args given to template
public function __construct()
{
$this->initBaseVariables();
}
/**
*
* @return inspire_Plugin4
*/
public function getPlugin()
{
return $this;
}
public function loadPluginTextDomain()
{
load_plugin_textdomain( 'inspire-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/lang/' );
}
/**
*
*/
public function initBaseVariables()
{
$reflection = new ReflectionClass($this);
// Set Plugin Path
$this->_pluginPath = dirname($reflection->getFileName());
// Set Plugin URL
$this->_pluginUrl = plugin_dir_url($reflection->getFileName());
$this->_pluginFilePath = $reflection->getFileName();
$this->_templatePath = '/' . $this->_pluginNamespace . '_templates';
$this->_defaultViewArgs = array(
'pluginUrl' => $this->getPluginUrl()
);
register_activation_hook( $this->_pluginFilePath, array( $this, 'activation' ) );
register_deactivation_hook( $this->_pluginFilePath, array( $this, 'deactivation' ) );
register_uninstall_hook( $this->_pluginFilePath, 'inspire_Plugin4::uninstall' );
add_action( 'plugins_loaded', array($this, 'loadPluginTextDomain') );
add_filter( 'plugin_action_links_' . plugin_basename( $this->getPluginFilePath() ), array( $this, 'linksFilter' ) );
/*$this->_initPluginUpdates();
echo '<pre style="margin-left: 170px;">';
var_dump($this->_pluginPath);
var_dump($this->_pluginUrl);
var_dump($this->_pluginFilePath);
var_dump($this->getTemplatePath());
var_dump($this->getPluginAssetsUrl());
echo '</pre>';*/
}
/**
* Plugin activation hook
*/
public function activation()
{
}
/**
* Plugin deactivation hook
*/
public function deactivation()
{
}
/**
* Plugin uninstall hook
*/
public static function uninstall()
{
}
/**
*
* @return string
*/
public function getPluginUrl()
{
return esc_url(trailingslashit($this->_pluginUrl));
}
public function getPluginAssetsUrl()
{
return esc_url(trailingslashit($this->getPluginUrl() . 'assets'));
}
/**
* @return string
*/
public function getTemplatePath()
{
return trailingslashit($this->_templatePath);
}
public function getPluginFilePath()
{
return $this->_pluginFilePath;
}
public function getNamespace()
{
return $this->_pluginNamespace;
}
protected function _initPluginUpdates()
{
add_filter('pre_set_site_transient_update_plugins', array($this, 'checkForPluginUpdate'));
}
protected function getPluginUpdateName()
{
return $this->getNamespace() . '/' . str_replace('woocommerce-', '', $this->getNamespace()) .'.php';
}
public function checkForPluginUpdate($checked_data)
{
global $wp_version;
var_dump('y');
if (empty($checked_data->checked))
return $checked_data;
var_dump($checked_data);
$args = array(
'slug' => $this->getNamespace(),
'version' => $checked_data->checked[$this->getPluginUpdateName()],
);
$request_string = array(
'body' => array(
'action' => 'basic_check',
'request' => serialize($args),
'site' => get_bloginfo('url'),
'token' => self::DEFAULT_TOKEN
),
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url')
);
var_dump($request_string); die();
// Start checking for an update
$raw_response = wp_remote_post($this->_wpdeskUpdateUrl, $request_string);
if (!is_wp_error($raw_response) && ($raw_response['response']['code'] == 200))
$response = unserialize($raw_response['body']);
if (is_object($response) && !empty($response)) // Feed the update data into WP updater
$checked_data->response[$this->getNamespace() .'/'. $this->getNamespace() .'.php'] = $response;
return $checked_data;
}
/**
*
* @param string $message
* @param string $class
*/
public function addAdminMessage($message, $class = 'updated')
{
$messages = $this->_getAdminMessages();
if (!is_array($messages))
{
$messages = array();
}
$messages[$class][] = $message;
$this->_setAdminMessages($messages);
}
protected function _getAdminMessages()
{
return get_option($this->getNamespace() . '_messages');
}
protected function _setAdminMessages($messages)
{
update_option($this->getNamespace() . '_messages', $messages);
}
/**
*
* @param boolean $clean
*/
public function getAdminMessagesHtml($clean = true)
{
$messages = $this->_getAdminMessages();
$str = '';
if (is_array($messages) && !empty($messages))
{
foreach ($messages as $class => $messagesArray)
{
$str .= '<div class="' . $class . '" id="message">';
foreach ($messagesArray as $message)
{
$str .= '<p>' . $message . '</p>';
}
$str .= '</div>';
}
}
if ($clean)
{
$this->_setAdminMessages('');
}
return $str;
}
public function addFrontMessage($message, $class = 'message')
{
$messages = $this->_getFrontMessages();
if (!is_array($messages))
{
$messages = array();
}
$messages[$class][] = $message;
$this->_setFrontMessages($messages);
}
protected function _getFrontMessages()
{
return $_SESSION['i-messages'];
}
protected function _setFrontMessages($messages)
{
$_SESSION['i-messages'] = $messages;
}
public function getFrontMessagesHtml($clean = true)
{
$messages = $this->_getFrontMessages();
$str = '';
if (is_array($messages) && !empty($messages))
{
foreach ($messages as $class => $messagesArray)
{
foreach ($messagesArray as $message)
{
$str .= '<p class="woocommerce-' . $class . '"><strong>' . $message . '</strong></p>';
}
}
}
if ($clean)
{
$this->_setFrontMessages('');
}
return $str;
}
/**
* Renders end returns selected template
*
* @param string $name name of the template
* @param string $path additional inner path to the template
* @param array $args args accesible from template
* @return string
*/
public function loadTemplate($name, $path = '', $args = array())
{
//$args = array_merge($this->_defaultViewArgs, array('textDomain', $this->_textDomain), $args);
$path = trim($path, '/');
if (file_exists($templateName = implode('/', array(get_template_directory(), $this->getTemplatePath(), $path, $name . '.php'))))
{
} else {
$templateName = implode('/', array($this->_pluginPath, $this->getTemplatePath(), $path, $name . '.php'));
}
ob_start();
include($templateName);
return ob_get_clean();
}
/**
* Gets setting value
*
* @param string $name
* @param string $default
* @return Ambigous <mixed, boolean>
*/
public function getSettingValue($name, $default = null)
{
return get_option($this->getNamespace() . '_' . $name, $default);
}
public function setSettingValue($name, $value)
{
return update_option($this->getNamespace() . '_' . $name, $value);
}
public function isSettingValue($name)
{
$option = get_option($this->getNamespace() . '_' . $name);
return !empty($option);
}
/**
* action_links function.
*
* @access public
* @param mixed $links
* @return void
*/
public function linksFilter( $links )
{
$plugin_links = array(
'<a href="' . admin_url( 'admin.php?page=' . $this->getNamespace() ) . '">' . __( 'Ustawienia', 'inspire-plugin' ) . '</a>',
'<a href="http://www.wpdesk.pl/docs/' . str_replace('_', '-', $this->getNamespace()) . '_docs/">' . __( 'Dokumentacja', 'inspire-plugin' ) . '</a>',
'<a href="http://www.wpdesk.pl/support/">' . __( 'Wsparcie', $this->getTextDomain() ) . '</a>',
);
return array_merge( $plugin_links, $links );
}
/**
*
* @param string $name
*/
protected function _convertCamelCaseToPath($name)
{
return strtolower(preg_replace('/([a-z0-9])([A-Z])/', '$1_$2', $name));
}
public function createHelperClass($name)
{
require_once('pluginHelper4.php');
$file = $this->_convertCamelCaseToPath($name); ;
require_once( plugin_dir_path($this->getPluginFilePath()) . '/classes/' . $file . '.php' );
return new $name($this);
}
public function createDependant($name)
{
require_once('pluginDependant4.php');
$file = $this->_convertCamelCaseToPath($name); ;
require_once( plugin_dir_path($this->getPluginFilePath()) . '/classes/' . $file . '.php' );
return new $name($this);
}
}
}

View File

@@ -0,0 +1,113 @@
<?php
class Easypack_checkout_validator
{
/**
* @var WC_Checkout
*/
private $wc_checkout;
public function __construct()
{
add_action('woocommerce_after_checkout_validation', array($this, 'validate_phone_number_uk'), 10, 2);
add_action('woocommerce_checkout_init', array($this, 'checkout_init'), 10);
}
/**
* @param WC_Checkout $instance
*/
public function checkout_init($instance)
{
$this->wc_checkout = $instance;
}
/**
* @param array $data
* @param WP_Error $errors
*/
public function validate_phone_number_uk($data, $errors)
{
if ('gb' !== get_option('easypack_api_country')) {
return;
}
$checkout = WC_Checkout::instance();
foreach ($checkout->get_checkout_fields() as $fieldset_key => $fieldset) {
if ($this->maybe_skip_fieldset($fieldset_key, $data)) {
continue;
}
foreach ($fieldset as $key => $field) {
if ( ! isset($data[$key])) {
continue;
}
$required = ! empty($field['required']);
$format = array_filter(isset($field['validate']) ? (array)$field['validate'] : array());
$field_label = isset($field['label']) ? $field['label'] : '';
switch ($fieldset_key) {
case 'shipping' :
/* translators: %s: field name */
$field_label = sprintf(__('Shipping %s', 'woocommerce'), $field_label);
break;
case 'billing' :
/* translators: %s: field name */
$field_label = sprintf(__('Billing %s', 'woocommerce'), $field_label);
break;
}
if (in_array('phone', $format)) {
if (false === $this->is_uk_phone($data[$key])) {
$errors->add('validation', sprintf(__('Please enter a valid UK phone number.', 'woocommerce'),
'<strong>' . esc_html($field_label) . '</strong>'));
}
}
}
}
}
/**
* @param string $phone
*
* @return bool
*
*/
private function is_uk_phone($phone)
{
$regex = "/^([0-9]{10,11})$/";
$cleaned_input = preg_replace('/\D/', '', (int)$phone); // leave only numbers
//var_dump($cleaned_input);die;
if (preg_match($regex, $cleaned_input)) {
return true;
}
return false;
}
/**
* See if a fieldset should be skipped.
*
* @since 3.0.0
*
* @param string $fieldset_key
* @param array $data
*
* @return bool
*/
protected function maybe_skip_fieldset($fieldset_key, $data)
{
if ('shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] || ! WC()->cart->needs_shipping_address())) {
return true;
}
if ('account' === $fieldset_key && (is_user_logged_in() || ( ! $this->wc_checkout->is_registration_required() && empty($data['createaccount'])))) {
return true;
}
return false;
}
}
new Easypack_checkout_validator();

View File

@@ -0,0 +1,341 @@
<?php
/**
* EasyPack Shipping Method Cross Border Courier
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'EasyPack_Shippng_Cross_Border_Courier' ) ) {
class EasyPack_Shippng_Cross_Border_Courier extends EasyPack_Shippng_Cross_Border_Parcel_Machines {
/**
* Constructor for shipping class
*
* @access public
* @return void
*/
public function __construct() {
//$this->id = 'easypack_cross_border_courier';
//$this->method_title = __( 'Cross Border Courier', EasyPack::$text_domain );
//$this->init();
//dd_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
}
/**
* Init your settings
*
*
* @access public
* @return void
*/
function init() {
parent::init();
remove_action( 'woocommerce_review_order_after_shipping', array( $this, 'woocommerce_review_order_after_shipping') );
remove_action( 'woocommerce_checkout_update_order_meta', array( $this, 'woocommerce_checkout_update_order_meta') );
remove_action( 'woocommerce_checkout_process', array($this, 'woocommerce_checkout_process' ) );
}
public function rate_sort( $a, $b ) {
return strcmp( $a['country_name'], $b['country_name'] );
}
public function generate_rates_html( $key, $data )
{
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
ob_start();
$routes = CrossBorder_API()->me_routes();
$parcel_routes = array();
foreach ( $routes as $route ) {
if ( strtoupper( $route['recipient_country_code'] ) != strtoupper( str_replace( 'test-', '', get_option( 'easypack_api_country', 'pl' ) ) ) ) {
foreach ( $route['routes'] as $method ) {
if ( $method['recipient_method'] == 'ToDoor' ) {
$parcel_routes[$route['recipient_country_code']] = $route['recipient_country_code'];
}
}
}
}
foreach ( $rates as $country => $rate ) {
if ( isset( $parcel_routes[$country] ) ) {
unset( $parcel_routes[$country] );
}
else {
unset( $rates[$country] );
}
}
foreach ( $parcel_routes as $parcel_route ) {
$rates[$parcel_route] = array( 'kg_1' => '', 'kg_2' => '', 'kg_5' => '', 'kg_10' => '', 'kg_15' => '', 'kg_20' => '' );
}
$countries = WC()->countries->get_countries();
foreach ( $rates as $country => $rate ) {
$rates[$country]['country_name'] = $countries[$country];
$rates[$country]['country_code'] = $country;
}
// remove Poland
unset($rates['PL']);
usort( $rates, array( $this, 'rate_sort' ) );
include( 'views/html-rates-cross-border-courier.php' );
return ob_get_clean();
}
public function init_form_fields() {
$bank_accounts = array();
//$bacs = new WC_Gateway_BACS();
//$accounts = $bacs->account_details;
$accounts = get_option( 'woocommerce_bacs_accounts', array() );
foreach ( $accounts as $account )
{
$bank_accounts[$account['account_number']] = $account['account_number'] . ' ' . $account['bank_name'];
}
$settings = array(
array(
'title' => __( 'General settings', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'enabled' => array(
'title' => __( 'Enable/disable', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Enable this shipping metod', EasyPack::$text_domain ),
'default' => 'no',
),
'title' => array(
'title' => __( 'Method title', EasyPack::$text_domain ),
'type' => 'text',
'default' => __( 'Cross Border Courier', EasyPack::$text_domain ),
'desc_tip' => false
),
'free_shipping_cost' => array(
'title' => __('Free shipping', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'default' => '',
'desc_tip' => __('Enter the amount of the contract, from which shipping will be free (does not include virtual products).', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'flat_rate' => array(
'title' => __( 'Flat rate', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Set a flat-rate shipping fee for the entire order.', EasyPack::$text_domain ),
'class' => 'easypack_flat_rate',
'default' => 'yes',
),
'cost_per_order' => array(
'title' => __( 'Cost per order', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'class' => 'easypack_cost_per_order',
'default' => '',
'desc_tip' => __( 'Set a flat-rate shipping for all orders.', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'rates' => array(
'title' => __('Rates table', EasyPack::$text_domain ),
'type' => 'rates',
'default' => '',
'desc_tip' => 'The default pricing information for your account is below the edit field. You can edit and set your own prices that will be seen when the customer is placing the order.',
),
);
$this->form_fields = $settings;
}
/**
* @param unknown $package
*
*/
public function calculate_shipping_table_rate( $package ) {
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
$cart = WC()->cart;
$value = 0;
$weight = $this->package_weight( $package['contents'] );
foreach ( $rates as $country => $rate ) {
$cost = false;
if ( $package['destination']['country'] == $country ) {
if ( $weight <= 25 ) {
if ( $weight <= 1 ) {
if ( isset( $rate['kg_1'] ) && trim( $rate['kg_1'] ) != '' ) {
$cost = floatval( $rate['kg_1'] );
}
}
else if ( $weight <= 2 ) {
if ( isset( $rate['kg_2'] ) && trim( $rate['kg_2'] ) != '' ) {
$cost = floatval( $rate['kg_2'] );
}
}
else if ( $weight <= 5 ) {
if ( isset( $rate['kg_5'] ) && trim( $rate['kg_5'] ) != '' ) {
$cost = floatval( $rate['kg_5'] );
}
}
else if ( $weight <= 10 ) {
if ( isset( $rate['kg_10'] ) && trim( $rate['kg_10'] ) != '' ) {
$cost = floatval( $rate['kg_10'] );
}
}
else if ( $weight <= 15 ) {
if ( isset( $rate['kg_15'] ) && trim( $rate['kg_15'] ) != '' ) {
$cost = floatval( $rate['kg_15'] );
}
}
else if ( $weight <= 20 ) {
if ( isset( $rate['kg_20'] ) && trim( $rate['kg_20'] ) != '' ) {
$cost = floatval( $rate['kg_20'] );
}
}
else if ( $weight <= 25 ) {
if ( isset( $rate['kg_25'] ) && trim( $rate['kg_25'] ) != '' ) {
$cost = floatval( $rate['kg_25'] );
}
}
}
}
if ( $cost !== false )
{
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $cost,
);
$this->add_rate( $add_rate );
return;
}
}
}
public function save_post( $post_id ) {
// Check if our nonce is set.
if ( ! isset( $_POST['easypack_box_data_crossborder_courier'] ) ) {
return;
}
// Verify that the nonce is valid.
if ( ! wp_verify_nonce( $_POST['easypack_box_data_crossborder_courier'], 'easypack_box_data_crossborder_courier' ) ) {
return;
}
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
$status = get_post_meta( $post_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
if ( $status == 'new' ) {
$parcels = $_POST['parcel'];
$easypack_pacels = array();
foreach ( $parcels as $parcel )
{
$parcel_data = array( 'package_weight' => $parcel['weight'] );
$parcel_data['package_width'] = $parcel['width'];
$parcel_data['package_height'] = $parcel['height'];
$parcel_data['package_length'] = $parcel['length'];
$easypack_pacels[] = $parcel_data;
}
update_post_meta( $post_id, '_easypack_parcels', $easypack_pacels );
$easypack_send_method = $_POST['easypack_send_method'];
update_post_meta( $post_id, '_easypack_send_method', $easypack_send_method );
}
}
public function add_meta_boxes( $post_type, $post ) {
if ( $post->post_type == 'shop_order' )
{
$order = wc_get_order( $post->ID );
if ( $order->has_shipping_method($this->id) ) {
add_meta_box( 'easypack_parcel_machines', __('InPost', EasyPack::$text_domain ) . $this->get_logo(), array( $this, 'order_metabox' ), 'shop_order', 'side', 'default' );
}
}
}
public function order_metabox( $post ) {
self::order_metabox_content( $post );
}
public static function order_metabox_content( $post, $output = true ) {
if ( ! $output ) ob_start();
$order_id = $post->ID;
$order = wc_get_order( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
$parcel_machines = CrossBorder_API()->machines_options( $order->shipping_country );
$parcel_machine_id = get_post_meta( $post->ID, '_parcel_machine_id', true );
$parcels = get_post_meta( $post->ID, '_easypack_parcels', true );
$package_weights = EasyPack()->get_package_weights_courier();
if ( $parcels == '' ) {
$order_weight = EasyPack_Helper()->get_order_weight( $order );
$weight = EasyPack_Helper()->get_weight_option( $order_weight, $package_weights );
$parcels = array();
$parcel = array( 'package_weight' => $weight );
$parcel['package_width'] = get_option( 'easypack_package_width_courier', 60 );
$parcel['package_height'] = get_option( 'easypack_package_height_courier', 40 );
$parcel['package_length'] = get_option( 'easypack_package_length_courier', 40 );
$parcels[] = $parcel;
}
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
$send_method = get_post_meta( $post->ID, '_easypack_send_method', true );
if ( $send_method == '' ) {
$send_method = get_option( 'easypack_default_send_method', 'parcel_machine' );
}
$stickers_url = site_url('?easypack_download=1&easypack_parcel_machines_stickers=1&cross_border=1&order_id=' . $order_id . '&security=' . wp_create_nonce( 'easypack_nonce' ) );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url('pl-cb');
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['crossborder_data']['tracking_number'] . ',';
}
$tracking_url = trim( $tracking_url, ',' );
}
$disabled = false;
if ( $status != 'new' ) $disabled = true;
echo '<input id="easypack_status" type="hidden" name="easypack_status" value="' . $status . '">';
include( 'views/html-order-matabox-crossborder-courier.php' );
wp_nonce_field( 'easypack_box_data_crossborder_courier', 'easypack_box_data_crossborder_courier' );
if ( ! $output )
{
$out = ob_get_clean();
return $out;
}
}
public static function ajax_create_package( $courier = true ) {
parent::ajax_create_package( $courier );
}
}
}

View File

@@ -0,0 +1,690 @@
<?php
/**
* EasyPack Shipping Method Cross Border Parcel Machines
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'EasyPack_Shippng_Cross_Border_Parcel_Machines' ) ) {
class EasyPack_Shippng_Cross_Border_Parcel_Machines extends EasyPack_Shippng_Parcel_Machines {
/**
* Constructor for shipping class
*
* @access public
* @return void
*/
public function __construct() {
//$this->id = 'easypack_cross_border_parcel_machines';
//$this->method_title = __( 'Cross Border Parcel Locker', EasyPack::$text_domain );
//$this->init();
//add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
//add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 1 );
}
public function admin_options()
{
?>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table>
<script type="text/javascript">
function display_rates() {
if ( jQuery('.easypack_flat_rate').prop('checked') ) {
jQuery('.easypack_cost_per_order').closest('tr').css('display','table-row');
jQuery('.easypack_rates').closest('tr').css('display','none');
}
else {
jQuery('.easypack_cost_per_order').closest('tr').css('display','none');
jQuery('.easypack_rates').closest('tr').css('display','table-row');
}
}
jQuery('.easypack_flat_rate').change(function() {
display_rates();
});
display_rates();
</script>
<?php
}
public function generate_rates_html( $key, $data )
{
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
ob_start();
$routes = CrossBorder_API()->me_routes();
$parcel_routes = array();
foreach ( $routes as $route ) {
if ( strtoupper( $route['recipient_country_code'] ) != strtoupper( str_replace( 'test-', '', get_option( 'easypack_api_country', 'pl' ) ) ) ) {
foreach ( $route['routes'] as $method ) {
if ( $method['recipient_method'] == 'ToParcelMachine' ) {
$parcel_routes[$route['recipient_country_code']] = $route['recipient_country_code'];
}
}
}
}
foreach ( $rates as $country => $rate ) {
if ( isset( $parcel_routes[$country] ) ) {
unset( $parcel_routes[$country] );
}
else {
unset( $rates[$country] );
}
}
foreach ( $parcel_routes as $parcel_route ) {
$rates[$parcel_route] = array( 'kg_1' => '', 'kg_2' => '', 'kg_5' => '', 'kg_10' => '', 'kg_15' => '', 'kg_20' => '' );
}
$countries = WC()->countries->get_countries();
include( 'views/html-rates-cross-border-parcel-machines.php' );
return ob_get_clean();
}
public function init_form_fields() {
$bank_accounts = array();
//$bacs = new WC_Gateway_BACS();
//$accounts = $bacs->account_details;
$accounts = get_option( 'woocommerce_bacs_accounts', array() );
foreach ( $accounts as $account )
{
$bank_accounts[$account['account_number']] = $account['account_number'] . ' ' . $account['bank_name'];
}
$settings = array(
array(
'title' => __( 'General settings', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'enabled' => array(
'title' => __( 'Enable/disable', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Enable this shipping metod', EasyPack::$text_domain ),
'default' => 'no',
),
'title' => array(
'title' => __( 'Method title', EasyPack::$text_domain ),
'type' => 'text',
'default' => __( 'Cross Border Parcel Locker', EasyPack::$text_domain ),
'desc_tip' => false
),
'free_shipping_cost' => array(
'title' => __('Free shipping', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'default' => '',
'desc_tip' => __('Enter the amount of the contract, from which shipping will be free (does not include virtual products).', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'flat_rate' => array(
'title' => __( 'Flat rate', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Set a flat-rate shipping fee for the entire order.', EasyPack::$text_domain ),
'class' => 'easypack_flat_rate',
'default' => 'yes',
),
'cost_per_order' => array(
'title' => __( 'Cost per order', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'class' => 'easypack_cost_per_order',
'default' => '',
'desc_tip' => __( 'Set a flat-rate shipping for all orders.', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'rates' => array(
'title' => __('Rates table', EasyPack::$text_domain ),
'type' => 'rates',
'default' => '',
'desc_tip' => 'The default pricing information for your account is below the edit field. You can edit and set your own prices that will be seen when the customer is placing the order.',
),
);
$this->form_fields = $settings;
}
/**
* @param unknown $package
*
*/
public function calculate_shipping_table_rate( $package ) {
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
$cart = WC()->cart;
$value = 0;
$weight = $this->package_weight( $package['contents'] );
foreach ( $rates as $country => $rate ) {
$cost = false;
if ( $package['destination']['country'] == $country ) {
if ( $weight <= 20 ) {
if ( $weight <= 1 ) {
if ( isset( $rate['kg_1'] ) && trim( $rate['kg_1'] ) != '' ) {
$cost = floatval( $rate['kg_1'] );
}
}
else if ( $weight <= 2 ) {
if ( isset( $rate['kg_2'] ) && trim( $rate['kg_2'] ) != '' ) {
$cost = floatval( $rate['kg_2'] );
}
}
else if ( $weight <= 5 ) {
if ( isset( $rate['kg_5'] ) && trim( $rate['kg_5'] ) != '' ) {
$cost = floatval( $rate['kg_5'] );
}
}
else if ( $weight <= 10 ) {
if ( isset( $rate['kg_10'] ) && trim( $rate['kg_10'] ) != '' ) {
$cost = floatval( $rate['kg_10'] );
}
}
else if ( $weight <= 15 ) {
if ( isset( $rate['kg_15'] ) && trim( $rate['kg_15'] ) != '' ) {
$cost = floatval( $rate['kg_15'] );
}
}
else if ( $weight <= 20 ) {
if ( isset( $rate['kg_20'] ) && trim( $rate['kg_20'] ) != '' ) {
$cost = floatval( $rate['kg_20'] );
}
}
}
}
if ( $cost !== false )
{
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $cost,
);
$this->add_rate( $add_rate );
return;
}
}
}
public function calculate_shipping( $package = array() ) {
$available = false;
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
foreach ( $rates as $country => $rate ) {
if ( $package['destination']['country'] == $country ) {
$available = true;
}
}
if ( $available ) {
if ( ! $this->calculate_shipping_free_shipping( $package ) ) {
if ( ! $this->calculate_shipping_flat( $package ) ) {
$this->calculate_shipping_table_rate( $package );
}
}
}
}
public function woocommerce_review_order_after_shipping() {
if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$shipping_country = WC()->session->customer['shipping_country'];
if ( isset( $_REQUEST['country'] ) && trim( $_REQUEST['country'] ) != '' ) {
$shipping_country = $_REQUEST['country'];
}
if ( isset( $_REQUEST['s_country'] ) && trim( $_REQUEST['s_country'] ) != '' ) {
$shipping_country = $_REQUEST['s_country'];
}
$parcel_machines = CrossBorder_API()->machines_options( $shipping_country );
$args = array( 'parcel_machines' => $parcel_machines );
$args['parcel_machine_id'] = WC()->session->get( 'parcel_machine_id' );
$geowidget_src = false;
try {
$geowidget_keys = CrossBorder_API()->geowidget_keys();
$sheepla_api_key = $geowidget_keys['public_key'];
$geowidget_src = '//widget-xborder-inpost.sheepla.com/js/SheeplaLib.js';
$geowidget_css = '//widget-xborder-inpost.sheepla.com/css/SheeplaCrossBorder.css';
}
catch ( Exception $e ) {
}
$args['geowidget_src'] = $geowidget_src;
$args['geowidget_css'] = $geowidget_css;
$args['sheepla_api_key'] = $sheepla_api_key;
wc_get_template( 'checkout/crossborder-review-order-after-shipping.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
public function woocommerce_checkout_process() {
if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
if ( empty( $_POST['parcel_machine_id'] ) ) {
wc_add_notice( __( 'Parcel locker must be choosen.', EasyPack::$text_domain ), 'error' );
}
else {
WC()->session->set( 'parcel_machine_id', $_POST['parcel_machine_id'] );
}
}
}
public function woocommerce_checkout_update_order_meta( $order_id ) {
if ($_POST['parcel_machine_id']) {
update_post_meta($order_id, '_parcel_machine_id', esc_attr($_POST['parcel_machine_id']));
$weight = WC()->cart->cart_contents_weight;
update_post_meta( $order_id, '_cart_weight', $weight );
}
}
public function save_post( $post_id ) {
// Check if our nonce is set.
if ( ! isset( $_POST['easypack_box_data_crossborder_parcel_machines'] ) ) {
return;
}
// Verify that the nonce is valid.
if ( ! wp_verify_nonce( $_POST['easypack_box_data_crossborder_parcel_machines'], 'easypack_box_data_crossborder_parcel_machines' ) ) {
return;
}
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
$status = get_post_meta( $post_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
if ( $status == 'new' ) {
$parcel_machine_id = $_POST['parcel_machine_id'];
update_post_meta( $post_id, '_parcel_machine_id', $parcel_machine_id );
$parcels = $_POST['parcel'];
$easypack_pacels = array();
foreach ( $parcels as $parcel )
{
$parcel_data = array( 'package_weight' => $parcel['weight'] );
$parcel_data['package_width'] = $parcel['width'];
$parcel_data['package_height'] = $parcel['height'];
$parcel_data['package_length'] = $parcel['length'];
$easypack_pacels[] = $parcel_data;
}
update_post_meta( $post_id, '_easypack_parcels', $easypack_pacels );
$easypack_send_method = $_POST['easypack_send_method'];
update_post_meta( $post_id, '_easypack_send_method', $easypack_send_method );
}
}
public function add_meta_boxes( $post_type, $post ) {
if ( $post->post_type == 'shop_order' )
{
$order = wc_get_order( $post->ID );
if ( $order->has_shipping_method($this->id) ) {
add_meta_box( 'easypack_parcel_machines', __('InPost', EasyPack::$text_domain ) . $this->get_logo(), array( $this, 'order_metabox' ), 'shop_order', 'side', 'default' );
}
}
}
public function order_metabox( $post ) {
self::order_metabox_content( $post );
}
public static function order_metabox_content( $post, $output = true ) {
if ( ! $output ) ob_start();
$order_id = $post->ID;
$order = wc_get_order( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
$parcel_machines = CrossBorder_API()->machines_options( $order->shipping_country );
$parcel_machine_id = get_post_meta( $post->ID, '_parcel_machine_id', true );
$parcels = get_post_meta( $post->ID, '_easypack_parcels', true );
$package_weights = EasyPack()->get_package_weights_parcel_machines();
if ( $parcels == '' ) {
$order_weight = EasyPack_Helper()->get_order_weight( $order );
$weight = EasyPack_Helper()->get_weight_option( $order_weight, $package_weights );
$parcels = array();
$parcel = array( 'package_weight' => $weight );
$parcel['package_width'] = get_option( 'easypack_package_width', 64 );
$parcel['package_height'] = get_option( 'easypack_package_height', 41 );
$parcel['package_length'] = get_option( 'easypack_package_length', 38 );
$parcels[] = $parcel;
}
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
$send_method = get_post_meta( $post->ID, '_easypack_send_method', true );
if ( $send_method == '' ) {
$send_method = get_option( 'easypack_default_send_method', 'parcel_machine' );
}
$stickers_url = site_url('?easypack_download=1&easypack_parcel_machines_stickers=1&cross_border=1&order_id=' . $order_id . '&security=' . wp_create_nonce( 'easypack_nonce' ) );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url('pl-cb');
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['crossborder_data']['tracking_number'] . ',';
}
$tracking_url = trim( $tracking_url, ',' );
}
$disabled = false;
if ( $status != 'new' ) $disabled = true;
echo '<input id="easypack_status" type="hidden" name="easypack_status" value="' . $status . '">';
include( 'views/html-order-matabox-crossborder-parcel-machines.php' );
wp_nonce_field( 'easypack_box_data_crossborder_parcel_machines', 'easypack_box_data_crossborder_parcel_machines' );
if ( ! $output )
{
$out = ob_get_clean();
return $out;
}
}
public static function ajax_create_package( $courier = false ) {
return;
$ret = array( 'status' => 'ok' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$parcels = $_POST['parcels'];
$parcel_machine_id = '';
if ( isset( $_POST['parcel_machine_id'] ) ) {
$parcel_machine_id = $_POST['parcel_machine_id'];
}
$send_method = $_POST['send_method'];
$order_parcels = array();
$total_amount = 0;
foreach ( $parcels as $key => $parcel )
{
$country = strtoupper( str_replace( 'test-', '', get_option( 'easypack_api_country' ,'PL' ) ) );
$args = array();
$args['declared_weight'] = array( 'amount' => $parcel['weight'], 'unit' => 'kg' );
$args['declared_dimensions'] = array( 'unit' => 'cm' );
$args['declared_dimensions']['width'] = $parcel['width'];
$args['declared_dimensions']['height'] = $parcel['height'];
$args['declared_dimensions']['length'] = $parcel['length'];
if ( $courier ) {
update_option( 'easypack_package_width_courier', $parcel['width'] );
update_option( 'easypack_package_height_courier', $parcel['height'] );
update_option( 'easypack_package_length_courier', $parcel['length'] );
}
else {
update_option( 'easypack_package_width', $parcel['width'] );
update_option( 'easypack_package_height', $parcel['height'] );
update_option( 'easypack_package_length', $parcel['length'] );
}
$args['recipient'] = array();
$args['recipient']['country_code'] = $order->shipping_country;
$args['recipient']['email'] = $order->billing_email;
$args['recipient']['first_name'] = $order->shipping_first_name;
$args['recipient']['last_name'] = $order->shipping_last_name;
$args['recipient']['phone'] = $order->billing_phone;
if ( ! $courier ) {
$args['recipient']['pop'] = array( 'id' => $parcel_machine_id, 'size' => 'C' );
}
else {
$args['recipient']['address'] = array();
$args['recipient']['address']['zip_code'] = $order->shipping_postcode;
$args['recipient']['address']['street'] = $order->shipping_address_1;
$args['recipient']['address']['building_number'] = $order->shipping_address_2;
$args['recipient']['address']['flat_number'] = '';
$args['recipient']['address']['city'] = $order->shipping_city;
}
$args['sender'] = array();
if ( $send_method == 'parcel_machine' ) {
$sender_machine_id = false;
$sender_machine = CrossBorder_API()->get_machine_by_name( get_option( 'easypack_default_machine_id' ), $country );
if ( $sender_machine ) $sender_machine_id = $sender_machine['id'];
$args['sender']['pop'] = array( 'id' => $sender_machine_id, 'size' => 'C' );
}
else {
$args['sender']['address'] = array();
$args['sender']['address']['zip_code'] = get_option( 'easypack_sender_post_code' );
$args['sender']['address']['street'] = get_option( 'easypack_sender_city' );
$args['sender']['address']['building_number'] = get_option( 'easypack_sender_building_no' );
$args['sender']['address']['flat_number'] = get_option( 'easypack_sender_flat_no' );
$args['sender']['address']['city'] = get_option( 'easypack_sender_city' );
}
$args['sender']['country_code'] = $country;
$args['sender']['email'] = get_option( 'easypack_sender_email' );
$args['sender']['company_name'] = get_option( 'easypack_sender_company_name' );
$args['sender']['first_name'] = get_option( 'easypack_sender_first_name' );
$args['sender']['last_name'] = get_option( 'easypack_sender_last_name' );
$args['sender']['phone'] = get_option( 'easypack_sender_phone' );
$package_status = 'ReadyToBeSent';
try {
$crossborder_data = CrossBorder_API()->shipments($args);
if ( isset( $crossborder_data['id'] ) ) {
$package_data = CrossBorder_API()->shipment( $crossborder_data['id'] );
$package_status = $package_data['status']['code'];
$order_parcels[] = array(
'package_weight' => $parcel['weight'],
'package_width' => $parcel['width'],
'package_height' => $parcel['height'],
'package_length' => $parcel['length'],
'crossborder_data' => $package_data
);
}
else {
$ret['status'] = 'error';
$ret['message'] = '';
foreach ( $crossborder_data as $error ) {
$ret['message'] .= $error['message'] . ', ';
}
$ret['message'] = trim( $ret['message'] );
$ret['message'] = trim( $ret['message'], ',' );
break;
}
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] = __( 'There are some errors. Please fix it:', EasyPack::$text_domain ) . $e->getMessage();
break;
}
}
if ( $ret['status'] == 'ok' ) {
update_post_meta( $order_id, '_easypack_parcels', $order_parcels );
update_post_meta( $order_id, '_easypack_status', $package_status );
update_post_meta( $order_id, '_easypack_send_method', $send_method );
$ret['content'] = self::order_metabox_content( $post, false );
}
echo json_encode( $ret );
wp_die();
}
public static function ajax_processing() {
$ret = array( 'status' => 'ok' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
$package_status = 'Processing';
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
$package_data = CrossBorder_API()->shipment( $parcel['crossborder_data']['id'] );
$package_status = $package_data['status']['code'];
$easypack_parcels[$key]['crossborder_data'] = $package_data;
if ( $package_data['status']['code'] == 'Rejected' ) {
unset( $easypack_parcels[$key]['crossborder_data'] );
$ret['status'] = 'error';
$ret['message'] = CrossBorder_API()->translate_error( $package_data['status']['comments'] );
}
}
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
}
if ( $ret['status'] == 'ok' ) {
$order->add_order_note( __( 'Shipment created', EasyPack::$text_domain ), false);
update_post_meta( $order_id, '_easypack_status', $package_status );
$ret['content'] = self::order_metabox_content( $post, false );
}
else {
delete_post_meta( $order_id, '_easypack_status' );
$ret['content'] = self::order_metabox_content( $post, false );
}
echo json_encode( $ret );
wp_die();
}
public static function get_stickers() {
$nonce = $_GET['security'];
if ( ! wp_verify_nonce( $nonce, 'easypack_nonce' ) ) {
echo __( 'Security check - bad nonce!', EasyPack::$text_domain );
return;
}
$order_id = $_GET['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
$stickers = array();
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
try {
$sticker = CrossBorder_API()->pdf_label( $parcel['crossborder_data']['id'] );
$stickers[] = $sticker;
}
catch ( Exception $e ) {
echo $e->getMessage();
return;
}
}
}
if ( count( $stickers ) == 1 ) {
if ( isset( $stickers[0][0]['pdf_url'] ) && trim( $stickers[0][0]['pdf_url'] ) != '' ) {
header('Location: ' . $stickers[0][0]['pdf_url'] );
die();
}
}
else {
$file = EasyPack_Helper()->write_stickers_to_file( $stickers );
if ( $status == 'created' ) {
update_post_meta( $order_id, '_easypack_status', 'prepared' );
}
EasyPack_Helper()->get_file($file, __( 'stickers', EasyPack::$text_domain ) . '_' . $order->get_id() . '.pdf', 'application/pdf' );
}
}
function woocommerce_my_account_my_orders_actions( $actions, $order ) {
if ( $order->has_shipping_method($this->id) ) {
$status = get_post_meta( $order->id, '_easypack_status', true );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
$parcels = get_post_meta( $order->id, '_easypack_parcels', true );
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['crossborder_data']['tracking_number'] . ',';
}
$tracking_url = trim( $tracking_url, ',' );
}
if ( $tracking_url ) {
$actions['easypack_tracking'] = array(
'url' => $tracking_url,
'name' => __( 'Track shipment', EasyPack::$text_domain )
);
}
}
return $actions;
}
function woocommerce_email_after_order_table( $order, $is_admin, $plain_text ) {
if ( $order->has_shipping_method($this->id) ) {
$status = get_post_meta( $order->id, '_easypack_status', true );
if ( $status != '' ) {
$tracking_url = false;
$package_numbers = '';
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
$parcels = get_post_meta( $order->id, '_easypack_parcels', true );
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['crossborder_data']['tracking_number'] . ',';
$package_numbers = $parcel['crossborder_data']['tracking_number'] . ', ';
}
$package_numbers = trim( trim ( $package_numbers ) , ',' );
$tracking_url = trim( $tracking_url, ',' );
}
if ( $tracking_url ) {
$args['tracking_url'] = $tracking_url;
$args['package_numbers'] = $package_numbers;
$args['logo'] = untrailingslashit( EasyPack()->getPluginUrl() ) . '/assets/images/logo/small/white.png';
if ( $plain_text ) {
wc_get_template( 'emails/plain/after-order-table.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
else {
wc_get_template( 'emails/after-order-table.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
}
}
}
function wp_enqueue_scripts() {
if ( is_checkout() ) {
$geowidget_src = '//widget-xborder-inpost.sheepla.com/js/SheeplaLib.js';
wp_enqueue_script(
'crossborder-geowidget',
$geowidget_src,
array( 'jquery' )
);
$geowidget_css = '//widget-xborder-inpost.sheepla.com/css/SheeplaCrossBorder.css';
wp_enqueue_style( 'crossborder-geowidget', $geowidget_css );
}
}
}
}

View File

@@ -0,0 +1,470 @@
<?php
/**
* EasyPack Shipping Method Parcel Machines COD
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'EasyPack_Shippng_Parcel_Machines_COD' ) ) {
class EasyPack_Shippng_Parcel_Machines_COD extends EasyPack_Shippng_Parcel_Machines {
/**
* Constructor for shipping class
*
* @access public
* @return void
*/
public function __construct() {
$this->id = 'easypack_parcel_machines_cod';
$this->method_title = __( 'InPost Locker 24/7 COD', EasyPack::$text_domain );
$this->init();
}
public function generate_rates_html( $key, $data )
{
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
$commission = '';
try {
$pricelists = EasyPack_API()->customer_pricelists();
$commission = floatval($pricelists['_embedded']['standard']['cod']['commission']);
}
catch ( Exception $e ) {
?>
<div class="error">
<p><?php echo $e->getMessage(); ?></p>
</div>
<?php
}
ob_start();
include( 'views/html-rates-cod.php' );
return ob_get_clean();
}
public function init_form_fields() {
$bank_accounts = array();
//$bacs = new WC_Gateway_BACS();
//$accounts = $bacs->account_details;
$accounts = get_option( 'woocommerce_bacs_accounts', array() );
foreach ( $accounts as $account )
{
if ( isset( $account['iban'] ) && $account['iban'] != '' ) {
$bank_accounts[$account['iban']] = $account['iban'] . ' ' . $account['bank_name'];
}
}
$settings = array(
array(
'title' => __( 'General settings', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'enabled' => array(
'title' => __( 'Enable/disable', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Enable this shipping metod', EasyPack::$text_domain ),
'default' => 'no',
),
'title' => array(
'title' => __( 'Method title', EasyPack::$text_domain ),
'type' => 'text',
'default' => __( 'InPost Locker 24/7 COD', EasyPack::$text_domain ),
'custom_attributes' => array( 'required' => 'required' ),
'desc_tip' => false
),
/* RM: 11101
'bank_account' => array(
'title' => __( 'Bank account', EasyPack::$text_domain ),
'type' => 'select',
'desc_tip' => __( 'Select the account to which the cost of COD will be transferred. If the list is empty, add the account number in the Settings.', EasyPack::$text_domain ),
'class' => 'wc-enhanced-select1',
'custom_attributes' => array( 'required' => 'required' ),
'options' => $bank_accounts
),
*/
'free_shipping_cost' => array(
'title' => __('Free shipping', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array( 'step' => 'any', 'min' => '0' ),
'default' => '',
'desc_tip' => __('Enter the amount of the contract, from which shipping will be free (does not include virtual products).', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'flat_rate' => array(
'title' => __( 'Flat rate', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Set a flat-rate shipping fee for the entire order.', EasyPack::$text_domain ),
'class' => 'easypack_flat_rate',
'default' => 'yes',
),
'cost_per_order' => array(
'title' => __( 'Cost per order', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array( 'step' => 'any', 'min' => '0' ),
'class' => 'easypack_cost_per_order',
'default' => '',
'desc_tip' => 'Set a flat-rate shipping for all orders.',
'placeholder' => '0.00'
),
array(
'title' => __( 'Rates table', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'based_on' => array(
'title' => __( 'Based on', EasyPack::$text_domain ),
'type' => 'select',
'desc_tip' => __( 'Select the method of calculating shipping cost. If the cost of shipping is to be calculated based on the weight of the cart and the products do not have a defined weight, the cost will be calculated incorrectly.', EasyPack::$text_domain ),
'class' => 'wc-enhanced-select easypack_based_on',
'options' => array(
'price' => __( 'Price', EasyPack::$text_domain ),
'weight' => __( 'Weight', EasyPack::$text_domain )
)
),
'rates' => array(
'title' => '',
'type' => 'rates',
'class' => 'easypack_rates',
'default' => '',
'desc_tip' => '',
),
);
$this->form_fields = $settings;
}
public function process_admin_options()
{
parent::process_admin_options();
EasyPack_API()->clear_cache();
/* RM 11101
$args = array();
$args['iban'] = $this->get_option( 'bank_account' );
try {
EasyPack_API()->update_customer( $args );
}
catch ( Exception $e ) {
WC_Admin_Settings::add_error( strip_tags( $e->getMessage() ) );
}
*/
}
public function woocommerce_checkout_update_order_meta( $order_id ) {
if ($_POST['parcel_machine_id']) {
update_post_meta($order_id, '_parcel_machine_id', esc_attr($_POST['parcel_machine_id']));
}
if ($_POST['parcel_machine_desc']) {
update_post_meta($order_id, '_parcel_machine_desc', esc_attr($_POST['parcel_machine_desc']));
}
}
public function save_post( $post_id ) {
// Check if our nonce is set.
if ( ! isset( $_POST['easypack_box_data_parcel_machines_cod'] ) ) {
return;
}
// Verify that the nonce is valid.
if ( ! wp_verify_nonce( $_POST['easypack_box_data_parcel_machines_cod'], 'easypack_box_data_parcel_machines_cod' ) ) {
return;
}
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
$status = get_post_meta( $post_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
if ( $status == 'new' ) {
$parcel_machine_id = $_POST['parcel_machine_id'];
$parcel_machine_desc = $_POST['parcel_machine_desc'];
update_post_meta( $post_id, '_parcel_machine_id', $parcel_machine_id );
update_post_meta( $post_id, '_parcel_machine_desc', $parcel_machine_desc );
$parcels = $_POST['parcel'];
$cod_amounts = $_POST['cod_amount'];
$easypack_pacels = array();
foreach ( $parcels as $key => $parcel )
{
$easypack_pacels[] = array( 'package_size' => $parcel, 'cod_amount' => $cod_amounts[$key] );
}
update_post_meta( $post_id, '_easypack_parcels', $easypack_pacels );
$easypack_send_method = $_POST['easypack_send_method'];
update_post_meta( $post_id, '_easypack_send_method', $easypack_send_method );
}
}
public function add_meta_boxes( $post_type, $post ) {
if ( $post->post_type == 'shop_order' )
{
$order = wc_get_order( $post->ID );
if ( $order->has_shipping_method($this->id) ) {
add_meta_box( 'easypack_parcel_machines', __('InPost', EasyPack::$text_domain ) . $this->get_logo(), array( $this, 'order_metabox' ), 'shop_order', 'side', 'default' );
}
}
}
public function order_metabox( $post ) {
self::order_metabox_content( $post );
}
public static function order_metabox_content( $post, $output = true ) {
if ( ! $output ) ob_start();
$order_id = $post->ID;
$order = wc_get_order( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
$parcel_machines = EasyPack_API()->machines_cod_options();
$parcel_machine_id = get_post_meta( $post->ID, '_parcel_machine_id', true );
$parcels = get_post_meta( $post->ID, '_easypack_parcels', true );
$package_sizes = EasyPack()->get_package_sizes();
$package_sizes_display = EasyPack()->get_package_sizes_display();
if ( $parcels == '' ) {
$parcels = array();
$parcel = array( 'package_size' => get_option( 'easypack_default_package_size', 'A' ), 'cod_amount' => $order->get_total() );
$parcels[] = $parcel;
}
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
$send_method = get_post_meta( $post->ID, '_easypack_send_method', true );
if ( $send_method == '' ) {
$send_method = get_option( 'easypack_default_send_method', 'parcel_machine' );
}
$stickers_url = site_url('?easypack_download=1&easypack_parcel_machines_stickers=1&order_id=' . $order_id . '&security=' . wp_create_nonce( 'easypack_nonce' ) );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['easypack_data']['id'] . ',';
}
$tracking_url = trim( $tracking_url, ',' );
}
$disabled = false;
if ( $status != 'new' ) $disabled = true;
$send_method_disabled = false;
if ( EasyPack_API()->api_country() == 'PL' || EasyPack_API()->api_country() == 'GB' ) {
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
}
else {
$send_methods = array( 'courier' => __( 'Courier', EasyPack::$text_domain ) );
}
include( 'views/html-order-matabox-parcel-machines_cod.php' );
wp_nonce_field( 'easypack_box_data_parcel_machines_cod', 'easypack_box_data_parcel_machines_cod' );
if ( ! $output )
{
$out = ob_get_clean();
return $out;
}
}
public function woocommerce_review_order_after_shipping() {
if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$parcel_machines = EasyPack_API()->machines_cod_options();
$args = array( 'parcel_machines' => $parcel_machines );
$args['parcel_machine_id'] = WC()->session->get( 'parcel_machine_id' );
wc_get_template( 'checkout/easypack-review-order-after-shipping.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
/**
* @param unknown $package
*
*/
public function calculate_shipping_table_rate( $package ) {
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
foreach ( $rates as $key => $rate) {
if ( empty($rates[$key]['min']) || trim( $rates[$key]['min'] ) == '' ) {
$rates[$key]['min'] = 0;
}
if ( empty($rates[$key]['max']) || trim( $rates[$key]['max'] ) == '' ) {
$rates[$key]['max'] = PHP_INT_MAX;
}
}
$value = 0;
if ( $this->based_on == 'price' ) {
$value = $this->package_subtotal( $package['contents'] );
}
if ( $this->based_on == 'weight' ) {
$value = $this->package_weight( $package['contents'] );
}
foreach ( $rates as $rate ) {
if ( floatval($rate['min']) <= $value && floatval($rate['max']) >= $value )
{
$cost = 0;
if ( isset( $rate['percent'] ) && floatval( $rate['percent']) != 0 ) {
$cost = $package['contents_cost'] * ( floatval( $rate['percent'] ) / 100);
}
$cost = $cost + floatval( $rate['cost'] );
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $cost,
);
$this->add_rate( $add_rate );
return;
}
}
}
public static function ajax_create_package( $courier = false ) {
$ret = array( 'status' => 'ok' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$parcels = $_POST['parcels'];
$cod_amounts = $_POST['cod_amounts'];
$parcel_machine_id = $_POST['parcel_machine_id'];
$send_method = $_POST['send_method'];
$order_parcels = array();
$total_amount = 0;
foreach ( $cod_amounts as $amount ) {
$total_amount = $total_amount+floatval($amount);
}
if ( $total_amount != $order->get_total() ) {
$ret['status'] = 'error';
$ret['message'] = sprintf( __( 'Order total %s do not equals total COD amounts %s.' ), $order->get_total(), $total_amount );
}
else {
foreach ( $parcels as $key => $parcel )
{
$args = array();
$args['target_machine_id'] = $parcel_machine_id;
$args['size'] = $parcel;
$args['receiver_email'] = $order->billing_email;
$args['receiver_phone'] = $order->billing_phone;
if ( $send_method == 'parcel_machine' )
$args['source_machine_id'] = get_option( 'easypack_default_machine_id' );
$args['customer_reference'] = sprintf( __( 'Order %s', EasyPack::$text_domain ), $order->get_order_number() );
$args['cod_amount'] = $cod_amounts[$key];
$args['additional1'] = __( 'Order ', EasyPack::$text_domain ) . $order->get_order_number();
try {
$easypack_data = EasyPack_API()->customer_parcel_create($args);
$order_parcels[] = array( 'package_size' => $parcel, 'easypack_data' => $easypack_data );
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] = __( 'There are some errors. Please fix it:' ) . $e->getMessage();
break;
}
}
if ( $ret['status'] == 'ok' ) {
update_post_meta( $order_id, '_easypack_parcels', $order_parcels );
update_post_meta( $order_id, '_easypack_status', 'created' );
update_post_meta( $order_id, '_easypack_send_method', $send_method );
$order->add_order_note( __( 'Shipment created', EasyPack::$text_domain ), false);
$ret['content'] = self::order_metabox_content( $post, false );
}
}
echo json_encode( $ret );
wp_die();
}
public static function ajax_cancel_package() {
$ret = array( 'status' => 'ok', 'message' => '' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
try {
$cancelled_parcel = EasyPack_API()->customer_parcel_cancel( $parcel['easypack_data']['id'] );
if ( $cancelled_parcel['status'] != 'cancelled') {
throw new Exception( sprintf( __('Cannot cancel package %s'), $parcel['easypack_data']['id'] ) );
}
unset( $easypack_parcels[$key]['easypack_data'] );
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] .= $e->getMessage();
}
}
}
if ( $ret['status'] == 'ok' ) {
update_post_meta( $order_id, '_easypack_parcels', $order_parcels );
update_post_meta( $order_id, '_easypack_status', 'new' );
$order->add_order_note( __( 'Shipment canceled', EasyPack::$text_domain ), false);
$ret['content'] = self::order_metabox_content( $post, false );
}
echo json_encode( $ret );
wp_die();
}
public static function ajax_get_payment_status() {
$ret = array( 'status' => 'ok', 'message' => '' );
$paecel_id = $_POST['parcel_id'];
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
$stickers = array();
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
try {
if ( $parcel['easypack_data']['id'] == $parcel_id ) {
$easypack_parcel = EasyPack_API()->customer_parcel( $parcel_id );
}
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] .= $e->getMessage();
}
}
}
if ( $ret['status'] == 'ok' ) {
}
echo json_encode( $ret );
wp_die();
}
}
}

View File

@@ -0,0 +1,724 @@
<?php
/**
* EasyPack Shipping Method Parcel Machines
*
* @author WPDesk
* @category Admin
* @package EasyPack/Admin
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'EasyPack_Shippng_Parcel_Machines' ) ) {
class EasyPack_Shippng_Parcel_Machines extends WC_Shipping_Method {
/**
* Constructor for shipping class
*
* @access public
* @return void
*/
public function __construct() {
$this->id = 'easypack_parcel_machines';
$this->method_title = __( 'InPost Locker 24/7', EasyPack::$text_domain );
$this->init();
}
/**
* Init your settings
*
*
* @access public
* @return void
*/
function init() {
$this->init_form_fields(); // This is part of the settings API. Override the method to add your own settings
$this->init_settings(); // This is part of the settings API. Loads settings you previously init.
// Define user set variables
$this->title = $this->get_option( 'title' );
$this->free_shipping_cost = $this->get_option( 'free_shipping_cost' );
$this->flat_rate = $this->get_option( 'flat_rate' );
$this->cost_per_order = $this->get_option( 'cost_per_order' );
$this->based_on = $this->get_option( 'based_on' );
$this->tax_status = get_option( 'easypack_tax_status' );
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
add_action( 'woocommerce_review_order_after_shipping', array( $this, 'woocommerce_review_order_after_shipping') );
add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'woocommerce_checkout_update_order_meta') );
add_action( 'woocommerce_checkout_process', array($this, 'woocommerce_checkout_process' ) );
add_action( 'save_post', array( $this, 'save_post' ) );
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 10, 2 );
add_filter( 'woocommerce_cart_shipping_method_full_label', array( $this, 'woocommerce_cart_shipping_method_full_label' ), 10, 2 );
add_filter( 'woocommerce_order_shipping_to_display_shipped_via', array( $this, 'woocommerce_order_shipping_to_display_shipped_via' ), 10, 2 );
add_filter( 'woocommerce_my_account_my_orders_actions', array( $this, 'woocommerce_my_account_my_orders_actions' ), 10, 2 );
add_action( 'woocommerce_email_after_order_table', array( $this, 'woocommerce_email_after_order_table' ), 10, 3 );
}
public function admin_options()
{
?>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table>
<script type="text/javascript">
function display_rates() {
if ( jQuery('.easypack_flat_rate').prop('checked') ) {
jQuery('.easypack_cost_per_order').closest('tr').css('display','table-row');
jQuery('.easypack_based_on').closest('tr').css('display','none');
jQuery('.easypack_rates').closest('tr').css('display','none');
jQuery('#woocommerce_easypack_parcel_machines_1').css('display','none');
jQuery('#woocommerce_easypack_parcel_machines_cod_1').css('display','none');
}
else {
jQuery('.easypack_cost_per_order').closest('tr').css('display','none');
jQuery('.easypack_based_on').closest('tr').css('display','table-row');
jQuery('.easypack_rates').closest('tr').css('display','table-row');
jQuery('#woocommerce_easypack_parcel_machines_1').css('display','block');
jQuery('#woocommerce_easypack_parcel_machines_cod_1').css('display','block');
}
}
jQuery('.easypack_flat_rate').change(function() {
display_rates();
});
display_rates();
</script>
<?php
}
public function generate_rates_html( $key, $data )
{
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
ob_start();
include( 'views/html-rates.php' );
return ob_get_clean();
}
public function init_form_fields() {
$settings = array(
array(
'title' => __( 'General settings', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'enabled' => array(
'title' => __( 'Enable/disable', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Enable this shipping metod', EasyPack::$text_domain ),
'default' => 'no',
),
'title' => array(
'title' => __( 'Method title', EasyPack::$text_domain ),
'type' => 'text',
'default' => __( 'InPost Locker 24/7', EasyPack::$text_domain ),
'desc_tip' => false
),
'free_shipping_cost' => array(
'title' => __( 'Free shipping', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'default' => '',
'desc_tip' => __( 'Enter the amount of the order from which the shipping will be free (does not include virtual products). ', EasyPack::$text_domain ),
'placeholder' => '0.00'
),
'flat_rate' => array(
'title' => __( 'Flat rate', EasyPack::$text_domain ),
'type' => 'checkbox',
'label' => __( 'Set a flat-rate shipping fee for the entire order.', EasyPack::$text_domain ),
'class' => 'easypack_flat_rate',
'default' => 'yes',
),
'cost_per_order' => array(
'title' => __( 'Cost per order', EasyPack::$text_domain ),
'type' => 'number',
'custom_attributes' => array(
'step' => 'any',
'min' => '0'
),
'class' => 'easypack_cost_per_order',
'default' => '',
'desc_tip' => 'Set a flat-rate shipping for all orders.',
'placeholder' => '0.00'
),
array(
'title' => __( 'Rates table', EasyPack::$text_domain ),
'type' => 'title',
'description' => '',
'id' => 'section_general_settings',
),
'based_on' => array(
'title' => __( 'Based on', EasyPack::$text_domain ),
'type' => 'select',
'desc_tip' => __( 'Select the method of calculating shipping cost. If the cost of shipping is to be calculated based on the weight of the cart and the products do not have a defined weight, the cost will be calculated incorrectly.', EasyPack::$text_domain ),
'class' => 'wc-enhanced-select easypack_based_on',
'options' => array(
'price' => __( 'Price', EasyPack::$text_domain ),
'weight' => __( 'Weight', EasyPack::$text_domain )
)
),
'rates' => array(
'title' => '',
'type' => 'rates',
'class' => 'easypack_rates',
'default' => '',
'desc_tip' => '',
),
);
$this->form_fields = $settings;
}
public function process_admin_options()
{
parent::process_admin_options();
$rates = $_POST['rates'];
update_option('woocommerce_' . $this->id . '_rates', $rates );
}
public function calculate_shipping_free_shipping( $package ) {
if ( !empty($this->free_shipping_cost) && $this->free_shipping_cost <= $package['contents_cost'] )
{
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => 0,
);
$this->add_rate( $add_rate );
return true;
}
return false;
}
public function calculate_shipping_flat( $package ) {
if ( $this->flat_rate == 'yes' )
{
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $this->cost_per_order,
);
$this->add_rate( $add_rate );
return true;
}
return false;
}
public function package_weight( $items ) {
$weight = 0;
foreach( $items as $item )
$weight += $item['data']->weight * $item['quantity'];
return $weight;
}
public function package_subtotal( $items ) {
$subtotal = 0;
foreach( $items as $item )
$subtotal += $item['line_subtotal'] + $item['line_subtotal_tax'];
return $subtotal;
}
/**
* @param unknown $package
*
*/
public function calculate_shipping_table_rate( $package ) {
$rates = get_option('woocommerce_' . $this->id . '_rates', array() );
foreach ( $rates as $key => $rate) {
if ( empty($rates[$key]['min']) || trim( $rates[$key]['min'] ) == '' ) {
$rates[$key]['min'] = 0;
}
if ( empty($rates[$key]['max']) || trim( $rates[$key]['max'] ) == '' ) {
$rates[$key]['max'] = PHP_INT_MAX;
}
}
$value = 0;
if ( $this->based_on == 'price' ) {
$value = $this->package_subtotal( $package['contents'] );
}
if ( $this->based_on == 'weight' ) {
$value = $this->package_weight( $package['contents'] );
}
foreach ( $rates as $rate ) {
if ( floatval($rate['min']) <= $value && floatval($rate['max']) >= $value )
{
$add_rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $rate['cost'],
);
$this->add_rate( $add_rate );
return;
}
}
}
public function calculate_shipping( $package = array() ) {
if ( strtoupper( $package['destination']['country'] ) == strtoupper( str_replace( 'test-', '', get_option( 'easypack_api_country', 'pl' ) ) ) ) {
if ( ! $this->calculate_shipping_free_shipping( $package ) )
{
if ( ! $this->calculate_shipping_flat( $package ) )
{
$this->calculate_shipping_table_rate( $package );
}
}
}
}
public function woocommerce_review_order_after_shipping() {
if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$parcel_machines = EasyPack_API()->machines_options();
$args = array( 'parcel_machines' => $parcel_machines );
$args['parcel_machine_id'] = WC()->session->get( 'parcel_machine_id' );
wc_get_template( 'checkout/easypack-review-order-after-shipping.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
public function woocommerce_checkout_process() {
if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
if ( empty( $_POST['parcel_machine_id'] ) ) {
wc_add_notice( __( 'Parcel locker must be choosen.', EasyPack::$text_domain ), 'error' );
}
else {
WC()->session->set( 'parcel_machine_id', $_POST['parcel_machine_id'] );
}
$billing_phone = $_POST['billing_phone'];
if ('gb' !== get_option('easypack_api_country')) {
$validate_phone = EasyPack_API()->validate_phone( $billing_phone );
if ( $validate_phone !== true ) {
wc_add_notice( $validate_phone, 'error' );
}
}
}
}
public function woocommerce_checkout_update_order_meta( $order_id ) {
if ($_POST['parcel_machine_id']) {
update_post_meta($order_id, '_parcel_machine_id', esc_attr($_POST['parcel_machine_id']));
}
if ($_POST['parcel_machine_desc']) {
update_post_meta($order_id, '_parcel_machine_desc', esc_attr($_POST['parcel_machine_desc']));
}
}
public function save_post( $post_id ) {
// Check if our nonce is set.
if ( ! isset( $_POST['easypack_box_data_parcel_machines'] ) ) {
return;
}
// Verify that the nonce is valid.
if ( ! wp_verify_nonce( $_POST['easypack_box_data_parcel_machines'], 'easypack_box_data_parcel_machines' ) ) {
return;
}
// If this is an autosave, our form has not been submitted, so we don't want to do anything.
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
$status = get_post_meta( $post_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
if ( $status == 'new' ) {
$parcel_machine_id = $_POST['parcel_machine_id'];
$parcel_machine_desc = $_POST['parcel_machine_desc'];
update_post_meta( $post_id, '_parcel_machine_id', $parcel_machine_id );
update_post_meta( $post_id, '_parcel_machine_desc', $parcel_machine_desc );
$parcels = $_POST['parcel'];
$easypack_pacels = array();
foreach ( $parcels as $parcel )
{
$easypack_pacels[] = array( 'package_size' => $parcel );
}
update_post_meta( $post_id, '_easypack_parcels', $easypack_pacels );
$easypack_send_method = $_POST['send_method'];
update_post_meta( $post_id, '_easypack_send_method', $easypack_send_method );
}
}
public function get_logo() {
return '<img style="height:22px; float:right;" src="' . untrailingslashit( EasyPack()->getPluginUrl() ). '/assets/images/logo/small/white.png"/>';
}
public function add_meta_boxes( $post_type, $post ) {
if ( $post->post_type == 'shop_order' )
{
$order = wc_get_order( $post->ID );
if ( $order->has_shipping_method($this->id) ) {
add_meta_box( 'easypack_parcel_machines'
, __('InPost', EasyPack::$text_domain ) . $this->get_logo()
, array( $this, 'order_metabox' )
, 'shop_order'
, 'side'
, 'default'
);
}
}
}
public function order_metabox( $post ) {
self::order_metabox_content( $post );
}
public static function order_metabox_content( $post, $output = true ) {
if ( ! $output ) ob_start();
$order_id = $post->ID;
$order = wc_get_order( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
if ( $status == '' ) $status = 'new';
$parcel_machines = EasyPack_API()->machines_options();
$parcel_machine_id = get_post_meta( $post->ID, '_parcel_machine_id', true );
$parcels = get_post_meta( $post->ID, '_easypack_parcels', true );
$package_sizes = EasyPack()->get_package_sizes();
$package_sizes_display = EasyPack()->get_package_sizes_display();
if ( $parcels == '' ) {
$parcels = array();
$parcel = array( 'package_size' => get_option( 'easypack_default_package_size', 'A' ) );
$parcels[] = $parcel;
}
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
$send_method = get_post_meta( $post->ID, '_easypack_send_method', true );
if ( $send_method == '' ) {
$send_method = get_option( 'easypack_default_send_method', 'parcel_machine' );
}
$stickers_url = site_url('?easypack_download=1&easypack_parcel_machines_stickers=1&order_id=' . $order_id . '&security=' . wp_create_nonce( 'easypack_nonce' ) );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['easypack_data']['id'] . ',';
}
$tracking_url = trim( $tracking_url, ',' );
}
$disabled = false;
if ( $status != 'new' ) $disabled = true;
$send_method_disabled = false;
if ( EasyPack_API()->api_country() == 'PL') {
$send_methods = array( 'parcel_machine' => __( 'Parcel locker', EasyPack::$text_domain ), 'courier' => __( 'Courier', EasyPack::$text_domain ) );
}
else {
$send_methods = array( 'courier' => __( 'Courier', EasyPack::$text_domain ) );
}
include( 'views/html-order-matabox-parcel-machines.php' );
wp_nonce_field( 'easypack_box_data_parcel_machines', 'easypack_box_data_parcel_machines' );
if ( ! $output )
{
$out = ob_get_clean();
return $out;
}
}
public static function ajax_create_package( $courier = false ) {
$ret = array( 'status' => 'ok' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$parcels = $_POST['parcels'];
$parcel_machine_id = $_POST['parcel_machine_id'];
$send_method = $_POST['send_method'];
$order_parcels = array();
foreach ( $parcels as $parcel )
{
$args = array();
$args['target_machine_id'] = $parcel_machine_id;
$args['size'] = $parcel;
$args['receiver_email'] = $order->billing_email;
$args['receiver_phone'] = $order->billing_phone;
if ( $send_method == 'parcel_machine' )
$args['source_machine_id'] = get_option( 'easypack_default_machine_id' );
$args['customer_reference'] = sprintf( __( 'Order %s', EasyPack::$text_domain ), $order->get_order_number() );
if ( EasyPack_API()->api_country() == 'FR') {
$args['receiver_phone'] = ltrim( $args['receiver_phone'], "0" );
$args['receiver'] = array();
$args['receiver']['first_name'] = $order->shipping_first_name;
$args['receiver']['last_name'] = $order->shipping_last_name;
$args['receiver']['address'] = array();
$args['receiver']['address']['street'] = $order->shipping_address_1;
$args['receiver']['address']['building_no'] = $order->shipping_address_2;
$args['receiver']['address']['post_code'] = $order->shipping_postcode;
$args['receiver']['address']['city'] = $order->shipping_city;
if ( $order->shipping_company && trim( $order->shipping_company ) != '' ) {
$args['receiver']['company_name'] = $order->shipping_company;
}
}
if ( EasyPack_API()->api_country() == 'IT') {
$args['receiver'] = array();
$args['receiver']['first_name'] = $order->shipping_first_name;
$args['receiver']['last_name'] = $order->shipping_last_name;
}
if ( EasyPack_API()->api_country() == 'FR' || EasyPack_API()->api_country() == 'IT' ) {
$args['sender_address'] = array();
$args['sender_address']['first_name'] = get_option('easypack_sender_first_name');
$args['sender_address']['last_name'] = get_option('easypack_sender_last_name');
$args['sender_address']['company_name'] = get_option('easypack_sender_company_name');
$args['sender_address']['street'] = get_option('easypack_sender_street');
$args['sender_address']['building_no'] = get_option('easypack_sender_building_no');
$args['sender_address']['flat_no'] = get_option('easypack_sender_flat_no');
$args['sender_address']['post_code'] = get_option('easypack_sender_post_code');
$args['sender_address']['city'] = get_option('easypack_sender_city');
}
try {
//update_post_meta( $order_id, '_easypack_parcel_create_args', $args );
$easypack_data = EasyPack_API()->customer_parcel_create($args);
$order_parcels[] = array( 'package_size' => $parcel, 'easypack_data' => $easypack_data );
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] = __( 'There are some errors. Please fix it:' ) . $e->getMessage();
break;
}
}
if ( $ret['status'] == 'ok' ) {
update_post_meta( $order_id, '_easypack_parcels', $order_parcels );
update_post_meta( $order_id, '_easypack_status', 'created' );
update_post_meta( $order_id, '_easypack_send_method', $send_method );
$order->add_order_note( __( 'Shipment created', EasyPack::$text_domain ), false);
$ret['content'] = self::order_metabox_content( $post, false );
}
echo json_encode( $ret );
wp_die();
}
public static function ajax_cancel_package() {
$ret = array( 'status' => 'ok', 'message' => '' );
$order_id = $_POST['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
try {
$cancelled_parcel = EasyPack_API()->customer_parcel_cancel( $parcel['easypack_data']['id'] );
if ( $cancelled_parcel['status'] != 'cancelled') {
throw new Exception( sprintf( __('Cannot cancel package %s'), $parcel['easypack_data']['id'] ) );
}
unset( $easypack_parcels[$key]['easypack_data'] );
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] .= $e->getMessage();
}
}
}
if ( $ret['status'] == 'ok' ) {
update_post_meta( $order_id, '_easypack_parcels', [] );
update_post_meta( $order_id, '_easypack_status', 'new' );
$order->add_order_note( __( 'Shipment canceled', EasyPack::$text_domain ), false);
$ret['content'] = self::order_metabox_content( $post, false );
}
echo json_encode( $ret );
wp_die();
}
public static function ajax_dispatch_order() {
$ret = array( 'status' => 'ok', 'message' => '' );
$parcels = $_POST['parcels'];
$ret['parcels'] = $parcels;
$dispatch_point = $_POST['dispatch_point'];
$ret['dispatch_point'] = $dispatch_point;
$parcel_ids = array();
foreach ( $parcels as $parcel ) {
$parcel_exploded = explode( '.', $parcel );
$parcel_ids[] = $parcel_exploded[2];
}
$args = array( 'parcel_ids' => $parcel_ids );
try {
$response = EasyPack_API()->dispatch_order( $dispatch_point, $args );
$ret['id'] = $response['id'];
}
catch ( Exception $e ) {
$ret['status'] = 'error';
$ret['message'] .= $e->getMessage();
}
echo json_encode( $ret );
wp_die();
}
public static function get_stickers() {
$nonce = $_GET['security'];
if ( ! wp_verify_nonce( $nonce, 'easypack_nonce' ) ) {
echo __( 'Security check - bad nonce!', EasyPack::$text_domain );
return;
}
$order_id = $_GET['order_id'];
$order = wc_get_order($order_id);
$post = get_post( $order_id );
$status = get_post_meta( $order_id, '_easypack_status', true );
$easypack_parcels = get_post_meta( $order_id, '_easypack_parcels', true );
$stickers = array();
if ( $easypack_parcels ) {
foreach ( $easypack_parcels as $key => $parcel ) {
try {
$easypack_data = EasyPack_API()->customer_parcel( $parcel['easypack_data']['id'] );
if ( $parcel['easypack_data']['status'] != $easypack_data['status'] ) {
$parcel['easypack_data'] = $easypack_data;
$easypack_parcels[$key] = $parcel;
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
}
if ( $parcel['easypack_data']['status'] == 'created' ) {
$easypack_data = EasyPack_API()->customer_parcel_pay( $parcel['easypack_data']['id'] );
$easypack_parcels[$key]['easypack_data'] = $easypack_data;
update_post_meta( $order_id, '_easypack_parcels', $easypack_parcels );
}
$stickers[] = EasyPack_API()->customer_parcel_sticker( $parcel['easypack_data']['id'] );
}
catch ( Exception $e ) {
echo $e->getMessage();
return;
}
}
}
$file = EasyPack_Helper()->write_stickers_to_file( $stickers );
if ( $status == 'created' ) {
update_post_meta( $order_id, '_easypack_status', 'prepared' );
}
EasyPack_Helper()->get_file($file, __( 'stickers', EasyPack::$text_domain ) . '_' . $order->get_id() . '.pdf', 'application/pdf' );
}
function woocommerce_cart_shipping_method_full_label( $label, $method ) {
if ( $method->id == $this->id ) {
$img = ' <span class="easypack-shipping-method-logo"><img style="" src="' . EasyPack()->getPluginUrl(). '/assets/images/logo/small/white.png" /><span>';
$label .= $img;
}
return $label;
}
function woocommerce_order_shipping_to_display_shipped_via( $via, $order ) {
if ( $order->has_shipping_method( $this->id ) ) {
$img = ' <span class="easypack-shipping-method-logo" style="display: inline;"><img style="max-width: 100; max-height: 40px; display: inline; border:none;" src="' . EasyPack()->getPluginUrl(). '/assets/images/logo/small/white.png" /><span>';
$via .= $img;
}
return $via;
}
function woocommerce_my_account_my_orders_actions( $actions, $order ) {
if ( $order->has_shipping_method($this->id) ) {
$status = get_post_meta( $order->id, '_easypack_status', true );
$tracking_url = false;
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
$parcels = get_post_meta( $order->id, '_easypack_parcels', true );
if ( $parcels != '' ) {
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['easypack_data']['id'] . ',';
}
}
$tracking_url = trim( $tracking_url, ',' );
}
if ( $tracking_url ) {
$actions['easypack_tracking'] = array(
'url' => $tracking_url,
'name' => __( 'Track shipment', EasyPack::$text_domain )
);
}
}
return $actions;
}
function woocommerce_email_after_order_table( $order, $is_admin, $plain_text ) {
if ( $order->has_shipping_method($this->id) ) {
$status = get_post_meta( $order->id, '_easypack_status', true );
if ( $status != '' && $status != 'new' ) {
$tracking_url = false;
$package_numbers = '';
if ( $status != 'new' ) {
$tracking_url = EasyPack_Helper()->get_tracking_url();
$parcels = get_post_meta( $order->id, '_easypack_parcels', true );
foreach ( $parcels as $parcel ) {
$tracking_url .= $parcel['easypack_data']['id'] . ',';
$package_numbers = $parcel['easypack_data']['id'] . ', ';
}
$package_numbers = trim( trim ( $package_numbers ) , ',' );
$tracking_url = trim( $tracking_url, ',' );
}
if ( $tracking_url ) {
$args['tracking_url'] = $tracking_url;
$args['package_numbers'] = $package_numbers;
$args['logo'] = untrailingslashit( EasyPack()->getPluginUrl() ). '/assets/images/logo/small/white.png';
if ( $plain_text ) {
wc_get_template( 'emails/plain/after-order-table.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
else {
wc_get_template( 'emails/after-order-table.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
}
}
}
}
}

View File

@@ -0,0 +1,214 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
?>
<?php foreach ( $parcels as $key => $parcel ) : ?>
<div>
<?php if ( $status == 'new' ) : ?>
<?php
$params = array(
'type' => 'select',
'options' => $package_weights,
'class' => array('easypack_parcel'),
'input_class' => array('easypack_parcel_weight'),
'label' => __( 'Parcel', EasyPack::$text_domain ) . ' ',
);
woocommerce_form_field('parcel[' . $key . '][weight]', $params, $parcel['package_weight'] );
_e( 'Dimensions (max 60x40x40)', EasyPack::$text_domain );
?>
<div>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_width',
'input_class' => 'easypack_parcel_width',
'label' => __( 'Width', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '60' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][width]',
'value' => $parcel['package_width'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_height',
'input_class' => 'easypack_parcel_height',
'label' => __( 'Height', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '40' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][height]',
'value' => $parcel['package_height'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_length',
'input_class' => 'easypack_parcel_length',
'label' => __( 'Length', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '40' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][length]',
'value' => $parcel['package_length'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
</div>
<?php
?>
<?php else : ?>
<?php if ( $status == "Processing" ) : ?>
<?php _e( 'Processing', EasyPack::$text_domain ); ?>
<?php else : ?>
<?php _e( 'Weight', EasyPack::$text_domain ); ?> <?php echo $parcel['package_weight']; ?> <?php _e( 'kg', EasyPack::$text_domain ); ?>
, <?php _e( 'dimensions', EasyPack::$text_domain ); ?> <?php echo $parcel['package_width']; ?>x<?php echo $parcel['package_height']; ?>x<?php echo $parcel['package_length']; ?>
<?php _e( 'cm', EasyPack::$text_domain ); ?>:
<?php echo $parcel['crossborder_data']['tracking_number']; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
$params = array(
'type' => 'select',
'options' => $send_methods,
'class' => array('wc-enhanced-select'),
'custom_attributes' => $custom_attributes,
'label' => __('Send method', EasyPack::$text_domain ),
);
woocommerce_form_field('easypack_send_method', $params, $send_method );
?>
<p>
<?php if ( $status == 'new' ) : ?>
<button id="easypack_send_parcels" class="button button-primary"><?php _e('Send parcel', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( $status == 'created' ) : ?>
<button id="easypack_cancel_parcels" class="button"><?php _e('Cancel parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( $status == 'ReadyToBeSent' || $status == 'prepared' ) : ?>
<a href="<?php echo $stickers_url; ?>" id="easypack_get_stickers" class="button button-primary" target="_blank"><?php _e('Get sticker(s)', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php if ( $tracking_url ) : ?>
<a href="<?php echo $tracking_url; ?>" class="button" target="_blank"><?php _e('Track shipment', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php if ( $status == 'Processing' ) : ?>
<?php _e( 'Processing', EasyPack::$text_domain ); ?>
<?php endif; ?>
<span id="easypack_spinner" class="spinner"></span>
</p>
<p id="easypack_error"></p>
<a href="#" download id="easypack_download" hidden></a>
<script type="text/javascript">
if ( jQuery().select2 ) {
jQuery("#parcel_machine_id").select2();
}
jQuery('#easypack_send_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var parcels = [];
jQuery('select.easypack_parcel_weight').each(function(i) {
var parent_div = jQuery(this).parent().parent();
parcels[i] = {
'weight' : jQuery(this).val(),
'width' : jQuery(parent_div).find('.easypack_parcel_width').val(),
'height' : jQuery(parent_div).find('.easypack_parcel_height').val(),
'length' : jQuery(parent_div).find('.easypack_parcel_length').val(),
};
})
var data = {
action: 'easypack',
easypack_action: 'crossborder_courier_create_package',
security: easypack_nonce,
order_id: <?php echo $order_id; ?>,
parcels: parcels,
send_method: jQuery('#easypack_send_method').val(),
};
console.log(data);
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_send_parcels').attr('disabled',false);
});
return false;
});
function crossborder_processing() {
console.log(jQuery('#easypack_status').val());
if ( jQuery('#easypack_status').val() == 'Processing' ) {
jQuery("#easypack_spinner").addClass("is-active");
var data = {
action: 'easypack',
easypack_action: 'crossborder_courier_processing',
security: easypack_nonce,
order_id: <?php echo $order_id; ?>,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
jQuery("#easypack_parcel_machines .inside").html(response.content);
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_cancel_parcels').attr('disabled',false);
});
}
}
crossborder_processing();
</script>

View File

@@ -0,0 +1,224 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
$params = array(
'type' => 'select',
'options' => $parcel_machines,
'class' => array('wc-enhanced-select'),
'custom_attributes' => $custom_attributes,
'label' => __('Selected parcel locker', EasyPack::$text_domain ),
);
woocommerce_form_field('parcel_machine_id', $params, $parcel_machine_id );
?>
<?php foreach ( $parcels as $key => $parcel ) : ?>
<div>
<?php if ( $status == 'new' ) : ?>
<?php
$params = array(
'type' => 'select',
'options' => $package_weights,
'class' => array('easypack_parcel_weight'),
'input_class' => array('easypack_parcel_weight'),
'label' => __( 'Parcel', EasyPack::$text_domain ) . ' ',
);
woocommerce_form_field('parcel[' . $key . '][weight]', $params, $parcel['package_weight'] );
_e( 'Dimensions (max 64x41x38)', EasyPack::$text_domain );
?>
<div>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_width',
'input_class' => 'easypack_parcel_width',
'label' => __( 'Width', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '64' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][width]',
'value' => $parcel['package_width'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_height',
'input_class' => 'easypack_parcel_height',
'label' => __( 'Height', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '41' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][height]',
'value' => $parcel['package_height'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
<?php
$params = array(
'type' => 'number',
'class' => 'easypack_parcel_length',
'input_class' => 'easypack_parcel_length',
'label' => __( 'Length', EasyPack::$text_domain ) . ' ',
'custom_attributes' => array( 'min' => '1', 'max' => '38' ),
'style' => 'max-width: 70px;',
'id' => 'parcel[' . $key . '][length]',
'value' => $parcel['package_length'],
'description' => 'cm'
);
woocommerce_wp_text_input( $params )
?>
</div>
<?php
?>
<?php else : ?>
<?php if ( $status == "Processing" ) : ?>
<?php _e( 'Processing', EasyPack::$text_domain ); ?>
<?php else : ?>
<?php _e( 'Weight', EasyPack::$text_domain ); ?> <?php echo $parcel['package_weight']; ?> <?php _e( 'kg', EasyPack::$text_domain ); ?>
, <?php _e( 'dimensions', EasyPack::$text_domain ); ?> <?php echo $parcel['package_width']; ?>x<?php echo $parcel['package_height']; ?>x<?php echo $parcel['package_length']; ?>
<?php _e( 'cm', EasyPack::$text_domain ); ?>:
<?php echo $parcel['crossborder_data']['tracking_number']; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
$params = array(
'type' => 'select',
'options' => $send_methods,
'class' => array('wc-enhanced-select'),
'custom_attributes' => $custom_attributes,
'label' => __('Send method', EasyPack::$text_domain ),
);
woocommerce_form_field('easypack_send_method', $params, $send_method );
?>
<p>
<?php if ( $status == 'new' ) : ?>
<button id="easypack_send_parcels" class="button button-primary"><?php _e('Send parcel', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( $status == 'created' ) : ?>
<button id="easypack_cancel_parcels" class="button"><?php _e('Cancel parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( $status == 'ReadyToBeSent' || $status == 'prepared' ) : ?>
<a href="<?php echo $stickers_url; ?>" id="easypack_get_stickers" class="button button-primary" target="_blank"><?php _e('Get sticker(s)', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php if ( $tracking_url ) : ?>
<a href="<?php echo $tracking_url; ?>" class="button" target="_blank"><?php _e('Track shipment', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php if ( $status == 'Processing' ) : ?>
<?php _e( 'Processing', EasyPack::$text_domain ); ?>
<?php endif; ?>
<span id="easypack_spinner" class="spinner"></span>
</p>
<p id="easypack_error"></p>
<a href="#" download id="easypack_download" hidden></a>
<script type="text/javascript">
if ( jQuery().select2 ) {
jQuery("#parcel_machine_id").select2();
}
jQuery('#easypack_send_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var parcels = [];
jQuery('select.easypack_parcel_weight').each(function(i) {
var parent_div = jQuery(this).parent().parent();
parcels[i] = {
'weight' : jQuery(this).val(),
'width' : jQuery(parent_div).find('.easypack_parcel_width').val(),
'height' : jQuery(parent_div).find('.easypack_parcel_height').val(),
'length' : jQuery(parent_div).find('.easypack_parcel_length').val(),
};
})
var data = {
action: 'easypack',
easypack_action: 'crossborder_parcel_machines_create_package',
security: easypack_nonce,
order_id: <?php echo $order_id; ?>,
parcel_machine_id: jQuery('#parcel_machine_id').val(),
parcels: parcels,
send_method: jQuery('#easypack_send_method').val(),
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_send_parcels').attr('disabled',false);
});
return false;
});
function crossborder_processing() {
console.log(jQuery('#easypack_status').val());
if ( jQuery('#easypack_status').val() == 'Processing' ) {
jQuery("#easypack_spinner").addClass("is-active");
var data = {
action: 'easypack',
easypack_action: 'crossborder_parcel_machines_processing',
security: easypack_nonce,
order_id: <?php echo $order_id; ?>,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
jQuery("#easypack_parcel_machines .inside").html(response.content);
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_cancel_parcels').attr('disabled',false);
});
}
}
crossborder_processing();
</script>

View File

@@ -0,0 +1,191 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$first_parcel = true;
?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => 'parcel_machine_id',
'label' => __('Selected parcel locker', EasyPack::$text_domain ),
'desc_tip' => false,
'value' => $parcel_machine_id,
'custom_attributes' => $custom_attributes,
'class' => 'settings-geowidget',
]);
?>
<p><?php _e( 'Parcels', EasyPack::$text_domain ); ?>
<ol id="easypack_parcels">
<?php foreach ( $parcels as $parcel ) : ?>
<li>
<?php if ( $status == 'new' ) : ?>
<?php
$params = array(
'type' => 'select',
'options' => $package_sizes,
'class' => array('easypack_parcel'),
'input_class' => array('easypack_parcel'),
'label' => '',
);
woocommerce_form_field('parcel[]', $params, $parcel['package_size'] );
?>
<?php if ( $status == 'new' && ! $first_parcel ) : ?>
<button class="button easypack_remove_parcel"><?php _e( 'Remove', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php else : ?>
<?php _e( 'Size', EasyPack::$text_domain ); ?> <?php echo $package_sizes_display[$parcel['package_size']]; ?>:
<?php echo $parcel['easypack_data']['id']; ?>
<?php endif; ?>
</li>
<?php $first_parcel = false; ?>
<?php endforeach; ?>
</ol>
<?php if ( $status == 'new' ) : ?>
<button class="button easypack_add_parcel"><?php _e( 'Add parcel', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
</p>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled || $send_method_disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
$params = array(
'type' => 'select',
'options' => $send_methods,
'class' => array('wc-enhanced-select'),
'custom_attributes' => $custom_attributes,
'label' => __( 'Send method', EasyPack::$text_domain ),
);
woocommerce_form_field('easypack_send_method', $params, $send_method );
?>
<p>
<?php if ( $status == 'new' ) : ?>
<button id="easypack_send_parcels" class="button button-primary"><?php _e('Send parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<?php if ( $status == 'created' ) : ?>
<button id="easypack_cancel_parcels" class="button"><?php _e('Cancel parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php endif; ?>
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<?php if ( $status == 'created' || $status == 'prepared' ) : ?>
<a href="<?php echo $stickers_url; ?>" id="easypack_get_stickers" class="button button-primary" target="_blank"><?php _e('Get sticker(s)', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php if ( false) : ?>
<a href="<?php echo $tracking_url; ?>" class="button" target="_blank"><?php _e('Track shipment', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<span id="easypack_spinner" class="spinner"></span>
</p>
<p id="easypack_error"></p>
<a href="#" download id="easypack_download" hidden></a>
<script type="text/javascript">
jQuery(".easypack_add_parcel").click(function() {
var ul = jQuery('#easypack_parcels');
var li = ul.find('li:first').clone(true)
li.append('<button class="button easypack_remove_parcel"><?php _e( 'Remove', EasyPack::$text_domain ); ?></button>');
li.appendTo(ul);
return false;
});
jQuery("#easypack_parcels").on("click", ".easypack_remove_parcel", function() {
jQuery(this).parent().remove();
return false;
})
jQuery('#easypack_send_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var parcels = [];
jQuery('select.easypack_parcel').each(function(i) {
parcels[i] = jQuery(this).val();
})
var data = {
action : 'easypack',
easypack_action : 'parcel_machines_create_package',
security : easypack_nonce,
order_id : <?php echo $order_id; ?>,
parcel_machine_id : jQuery('#parcel_machine_id').val(),
parcels : parcels,
send_method : jQuery('#easypack_send_method').val(),
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_send_parcels').attr('disabled',false);
});
return false;
});
jQuery('#easypack_cancel_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var data = {
action : 'easypack',
easypack_action : 'parcel_machines_cancel_package',
security : easypack_nonce,
order_id : <?php echo $order_id; ?>,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_cancel_parcels').attr('disabled',false);
});
return false;
});
</script>

View File

@@ -0,0 +1,244 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$first_parcel = true;
?>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => 'parcel_machine_id',
'label' => __('Selected parcel locker', EasyPack::$text_domain ),
'desc_tip' => false,
'value' => $parcel_machine_id,
'custom_attributes' => $custom_attributes,
'class' => 'settings-geowidget',
]);
?>
<p><?php _e( 'Parcels', EasyPack::$text_domain ); ?>
<ol id="easypack_parcels">
<?php foreach ( $parcels as $parcel ) : ?>
<li>
<?php if ( $status == 'new' ) : ?>
<?php
$params = array(
'type' => 'select',
'options' => $package_sizes,
'class' => array('easypack_parcel'),
'input_class' => array('easypack_parcel'),
'label' => '',
);
woocommerce_form_field('parcel[]', $params, $parcel['package_size'] );
?>
<?php _e( 'COD amount: ', EasyPack::$text_domain ); ?>
<input class="easypack_cod_amount" type="number" style="" value="<?php echo $parcel['cod_amount']; ?>" placeholder="0.00" step="any" min="0" name="cod_amount[]">
<?php if ( $status == 'new' && ! $first_parcel ) : ?>
<button class="button easypack_remove_parcel"><?php _e( 'Remove', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php else : ?>
<?php _e( 'Size', EasyPack::$text_domain ); ?> <?php echo $package_sizes_display[$parcel['package_size']]; ?>:
<?php echo $parcel['easypack_data']['id']; ?><br/>
<?php _e( 'COD amount', EasyPack::$text_domain ); ?> <?php echo $parcel['easypack_data']['cod_amount']; ?>
<?php endif; ?>
</li>
<?php $first_parcel = false; ?>
<?php endforeach; ?>
</ol>
<?php if ( $status == 'new' ) : ?>
<button class="button easypack_add_parcel"><?php _e( 'Add parcel', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
</p>
<?php
$custom_attributes = array( 'style' => 'width:100%;' );
if ( $disabled || $send_method_disabled ) {
$custom_attributes['disabled'] = 'disabled';
}
$params = array(
'type' => 'select',
'options' => $send_methods,
'class' => array('wc-enhanced-select'),
'custom_attributes' => $custom_attributes,
'label' => __('Send method', EasyPack::$text_domain ),
);
woocommerce_form_field('easypack_send_method', $params, $send_method );
?>
<p>
<?php if ( $status == 'new' ) : ?>
<button id="easypack_send_parcels" class="button button-primary"><?php _e('Send parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<?php if ( $status == 'created' ) : ?>
<button id="easypack_cancel_parcels" class="button"><?php _e('Cancel parcels', EasyPack::$text_domain ); ?></button>
<?php endif; ?>
<?php endif; ?>
<?php if ( EasyPack_API()->api_country() == 'PL' ) : ?>
<?php if ( $status == 'created' || $status == 'prepared' ) : ?>
<a href="<?php echo $stickers_url; ?>" id="easypack_get_stickers" class="button button-primary" target="_blank"><?php _e('Get sticker(s)', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<?php endif; ?>
<?php if ( $tracking_url ) : ?>
<a href="<?php echo $tracking_url; ?>" class="button" target="_blank"><?php _e('Track shipment', EasyPack::$text_domain ); ?></a>
<?php endif; ?>
<span id="easypack_spinner" class="spinner"></span>
</p>
<p id="easypack_error"></p>
<a href="#" download id="easypack_download" hidden></a>
<script type="text/javascript">
jQuery(".easypack_add_parcel").click(function() {
var ul = jQuery('#easypack_parcels');
var li = ul.find('li:first').clone(true)
li.append('<button class="button easypack_remove_parcel"><?php _e( 'Remove', EasyPack::$text_domain ); ?></button>');
li.appendTo(ul);
li.find(".easypack_cod_amount").val(0);
return false;
});
jQuery("#easypack_parcels").on("click", ".easypack_remove_parcel", function() {
jQuery(this).parent().remove();
return false;
})
jQuery('#easypack_send_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var parcels = [];
jQuery('select.easypack_parcel').each(function(i) {
parcels[i] = jQuery(this).val();
})
var cod_amounts = [];
jQuery('input.easypack_cod_amount').each(function(i) {
cod_amounts[i] = jQuery(this).val();
})
var data = {
action : 'easypack',
easypack_action : 'parcel_machines_cod_create_package',
security : easypack_nonce,
order_id : <?php echo $order_id; ?>,
parcel_machine_id : jQuery('#parcel_machine_id').val(),
parcels : parcels,
cod_amounts : cod_amounts,
send_method : jQuery('#easypack_send_method').val(),
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_send_parcels').attr('disabled',false);
});
return false;
});
jQuery('#easypack_cancel_parcels').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var data = {
action : 'easypack',
easypack_action : 'parcel_machines_cod_cancel_package',
security : easypack_nonce,
order_id : <?php echo $order_id; ?>,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
jQuery("#easypack_parcel_machines .inside").html(response.content);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_cancel_parcels').attr('disabled',false);
});
return false;
});
jQuery('#easypack_get_stickers1').click(function () {
jQuery('#easypack_error').html('');
jQuery(this).attr('disabled',true);
jQuery("#easypack_spinner").addClass("is-active");
var data = {
action : 'easypack',
easypack_action : 'parcel_machines_get_stickers',
security : easypack_nonce,
order_id : <?php echo $order_id; ?>,
};
jQuery.post(ajaxurl, data, function(response) {
console.log(response);
if ( response != 0 ) {
response = JSON.parse(response);
console.log(response);
if (response.status == 'ok' ) {
var url = response.url;
//alert(url);
jQuery("#easypack_download").attr( "href", url );
jQuery("#easypack_download").click();
/*
if ( jQuery('#easypack_download').length ){
jQuery('#easypack_download').attr('src',url);
}
else {
jQuery('<iframe>', { id:'easypack_download', src:url }).hide().appendTo('body');
}
*/
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_get_stickers').attr('disabled',false);
return false;
}
else {
//alert(response.message);
jQuery('#easypack_error').html(response.message);
}
}
else {
//alert('Bad response.');
jQuery('#easypack_error').html('Invalid response.');
}
jQuery("#easypack_spinner").removeClass("is-active");
jQuery('#easypack_get_stickers').attr('disabled',false);
});
return false;
});
</script>

View File

@@ -0,0 +1,103 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$field = $this->get_field_key( $key );
?>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="woocommerce_easypack-parcel-machines_rates"><?php echo $data['title']; ?></label>
</th>
<td class="forminp">
<table id="<?php echo esc_attr( $field ); ?>" class="easypack_rates wc_input_table sortable widefat">
<thead>
<tr>
<th class="sort">&nbsp;</th>
<th class="price"><?php _e( 'Min', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( 'Max', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( 'Cost', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '%', EasyPack::$text_domain ); ?>&nbsp;<span class="tips" data-tip="<?php esc_attr_e( 'The commission is added to the shipping cost according to the formula: [value of the cart] * [%] + [shipping cost].', EasyPack::$text_domain ); ?>">[?]</span></th>
<th class="action"><?php _e( 'Action', EasyPack::$text_domain ); ?></th>
</tr>
</thead>
<tbody>
<?php $count = 0; ?>
<?php foreach ( $rates as $key => $rate) : $count++; ?>
<tr>
<td class="sort"></td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['min']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][min]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['max']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][max]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['cost']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][cost]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['percent']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][percent]>
</td>
<td class="action">
<a id="delete_rate_<?php echo $count; ?>" href="#" class="button delete_rate" data-id="<?php echo $count; ?>"><?php _e( 'Delete row', EasyPack::$text_domain ); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="6">
<a id="insert_rate" href="#" class="button plus insert"><?php _e( 'Insert row', EasyPack::$text_domain ); ?></a>
</th>
</tr>
</tfoot>
</table>
<script type="text/javascript">
function append_row( id ) {
var code = '<tr class="new">\
<td class="sort"></td>\
<td>\
<input id="rates_'+id+'_min" class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][min]>\
</td>\
<td>\
<input class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][max]>\
</td>\
<td>\
<input class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][cost]>\
</td>\
<td>\
<input class="input-text regular-input" type="number" style="" value="<?php echo $commission; ?>" placeholder="0.00" step="any" min="0" name=rates[' + id + '][percent]>\
</td>\
<td>\
<a id="delete_rate_'+id+'" href="#" class="button delete_rate" data-id="'+id+'"><?php _e( 'Delete row', EasyPack::$text_domain ); ?></a>\
</td>\
</tr>';
var $tbody = jQuery('.easypack_rates').find('tbody');
$tbody.append( code );
}
jQuery(document).ready(function() {
var $tbody = jQuery('.easypack_rates').find('tbody');
var append_id = $tbody.find('tr').size();
var size = $tbody.find('tr').size();
if ( size == 0 ) {
append_id = append_id+1;
append_row(append_id);
}
jQuery('#insert_rate').click(function() {
append_id = append_id+1;
append_row(append_id);
jQuery('#rates_'+append_id+'_min').focus();
return false;
});
jQuery(document).on('click', '.delete_rate', function() {
if (confirm('<?php _e( 'Are you sure?' , EasyPack::$text_domain ); ?>')) {
jQuery(this).closest('tr').remove();
}
return false;
});
});
</script>
</td>
</tr>

View File

@@ -0,0 +1,64 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$field = $this->get_field_key( $key );
?>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="woocommerce_easypack--cross-border-parcel-machines_rates"><?php echo $data['title']; ?></label>
<img class="help_tip" data-tip=" <?php _e( 'You can edit and set your own prices that will be seen when the customer is placing the order. If the products do not have a defined weight, the cost will be calculated incorrectly.', EasyPack::$text_domain ); ?>" src="<?php echo plugins_url( 'woocommerce/assets/images/help.png' ); ?>" height="16" width="16" />
</th>
<td class="forminp">
<table id="<?php echo esc_attr( $field ); ?>" class="easypack_rates wc_input_table sortable widefat">
<thead>
<tr>
<th class="country"><?php _e( 'Country', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '1 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '2 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '5 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '10 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '15 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '20 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '25 kg', EasyPack::$text_domain ); ?></th>
</tr>
</thead>
<tbody>
<?php $count = 0; ?>
<?php foreach ( $rates as $rate) : $count++; $key = $rate['country_code']; ?>
<tr>
<td class="country">
<strong><?php echo $countries[$key]; ?></strong>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_1']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_1]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_2']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_2]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_5']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_5]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_10']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_10]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_15']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_15]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_20']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_20]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_25']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_25]>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
</tfoot>
</table>
</td>
</tr>

View File

@@ -0,0 +1,63 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$field = $this->get_field_key( $key );
?>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="woocommerce_easypack--cross-border-parcel-machines_rates"><?php echo $data['title']; ?></label>
<img class="help_tip" data-tip=" <?php _e( 'You can edit and set your own prices that will be seen when the customer is placing the order. If the products do not have a defined weight, the cost will be calculated incorrectly.', EasyPack::$text_domain ); ?>" src="<?php echo plugins_url( 'woocommerce/assets/images/help.png' ); ?>" height="16" width="16" />
</th>
<td class="forminp">
<table id="<?php echo esc_attr( $field ); ?>" class="easypack_rates wc_input_table sortable widefat">
<thead>
<tr>
<th class="country"><?php _e( 'Country', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '1 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '2 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '5 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '10 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '15 kg', EasyPack::$text_domain ); ?></th>
<th class="price"><?php _e( '20 kg', EasyPack::$text_domain ); ?></th>
</tr>
</thead>
<tbody>
<?php $count = 0; ?>
<?php foreach ( $rates as $key => $rate) : $count++; ?>
<tr>
<td class="country">
<strong><?php echo $countries[$key]; ?></strong>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_1']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_1]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_2']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_2]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_5']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_5]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_10']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_10]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_15']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_15]>
</td>
<td class="price">
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['kg_20']; ?>" placeholder="0.00" step="any" min="0" name=rates[<?php echo $key; ?>][kg_20]>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
</tfoot>
</table>
</td>
</tr>

View File

@@ -0,0 +1,99 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$field = $this->get_field_key( $key );
?>
<tr valign="top">
<th scope="row" class="titledesc">
<label for="woocommerce_easypack_parcel_machines_rates"><?php echo $data['title']; ?></label>
</th>
<td class="forminp">
<table id="<?php echo esc_attr( $field ); ?>" class="easypack_rates wc_input_table sortable widefat">
<thead>
<tr>
<th class="sort">&nbsp;</th>
<th><?php _e( 'Min', EasyPack::$text_domain ); ?></th>
<th><?php _e( 'Max', EasyPack::$text_domain ); ?></th>
<th><?php _e( 'Cost', EasyPack::$text_domain ); ?></th>
<th><?php _e( 'Action', EasyPack::$text_domain ); ?></th>
</tr>
</thead>
<tbody>
<?php $count = 0; ?>
<?php foreach ( $rates as $key => $rate) : $count++; ?>
<tr>
<td class="sort"></td>
<td>
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['min']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][min]>
</td>
<td>
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['max']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][max]>
</td>
<td>
<input class="input-text regular-input" type="number" style="" value="<?php echo $rate['cost']; ?>" placeholder="0.00" step="any" min="0" name=rates['<?php echo $count; ?>'][cost]>
</td>
<td>
<a id="delete_rate_<?php echo $count; ?>" href="#" class="button delete_rate" data-id="<?php echo $count; ?>"><?php _e( 'Delete row', EasyPack::$text_domain ); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="5">
<a id="insert_rate" href="#" class="button plus insert"><?php _e( 'Insert row', EasyPack::$text_domain ); ?></a>
</th>
</tr>
</tfoot>
</table>
<script type="text/javascript">
function append_row( id ) {
var code = '<tr class="new">\
<td class="sort"></td>\
<td>\
<input id="rates_'+id+'_min" class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][min]>\
</td>\
<td>\
<input class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][max]>\
</td>\
<td>\
<input class="input-text regular-input" type="number" style="" value="" placeholder="0.00" step="any" min="0" name=rates[' + id + '][cost]>\
</td>\
<td>\
<a id="delete_rate_'+id+'" href="#" class="button delete_rate" data-id="'+id+'"><?php _e( 'Delete row', EasyPack::$text_domain ); ?></a>\
</td>\
</tr>';
var $tbody = jQuery('.easypack_rates').find('tbody');
$tbody.append( code );
}
jQuery(document).ready(function() {
var $tbody = jQuery('.easypack_rates').find('tbody');
var append_id = $tbody.find('tr').size();
var size = $tbody.find('tr').size();
if ( size == 0 ) {
append_id = append_id+1;
append_row(append_id);
}
jQuery('#insert_rate').click(function() {
append_id = append_id+1;
append_row(append_id);
jQuery('#rates_'+append_id+'_min').focus();
return false;
});
jQuery(document).on('click', '.delete_rate', function() {
if (confirm('<?php _e( 'Are you sure?' , EasyPack::$text_domain ); ?>')) {
jQuery(this).closest('tr').remove();
}
return false;
});
});
</script>
</td>
</tr>

View File

@@ -0,0 +1 @@
<?php /* Nothing to see here... */ ?>

View File

@@ -0,0 +1,3 @@
<?php
// Silence is golden.
?>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,39 @@
<?php
if (false === class_exists('FPDF')) {
require_once('fpdf/fpdf.php');
}
if (false === class_exists('FPDI')) {
require_once('fpdi/fpdi.php');
}
class ConcatPdf extends FPDI
{
public $files = array();
public function setFiles($files)
{
$this->files = $files;
}
public function concat()
{
foreach($this->files AS $file) {
$pageCount = $this->setSourceFile($file);
for ($pageNo = 1; $pageNo <= $pageCount; $pageNo++) {
$tplIdx = $this->ImportPage($pageNo);
$s = $this->getTemplatesize($tplIdx);
$this->AddPage($s['w'] > $s['h'] ? 'L' : 'P', array($s['w'], $s['h']));
$this->useTemplate($tplIdx);
}
}
}
}
/*
$pdf = new ConcatPdf();
$pdf->setFiles(array("samplepdfs/three.pdf", "samplepdfs/three.pdf", "samplepdfs/three.pdf"));
$pdf->concat();
$pdf->Output('concat.pdf', 'I');
*/

View File

@@ -0,0 +1,282 @@
<?php
/*******************************************************************************
* Script : PDF_Code128
* Version : 1.1
* Date : 10/04/2015
* Auteur : Roland Gautier
*
* Version date Detail
* 1.1 10/04/2015 128 control characters FNC1 to FNC4 accepted
* 1.0 20/05/2008 Origine
*
* Code128($x, $y, $code, $w, $h)
* $x,$y : angle sup<75>rieur gauche du code <20> barre
* upper left corner of the barcode
* $code : le code <20> cr<63>er
* ascii text to convert to barcode
* $w : largeur hors tout du code dans l'unit<69> courante
* (pr<70>voir 5 <20> 15 mm de blanc <20> droite et <20> gauche)
* barcode total width (current unit).
* (keep 5 to 15 mm white on left and right sides)
* $h : hauteur hors tout du code dans l'unit<69> courante
* barcode total height (current unit).
*
* Commutation des jeux ABC automatique et optimis<69>e.
* automatic and optimized A/B/C sets selection and switching
*
*
* 128 barcode control characters
* ASCII Aset Bset [ne pas utiliser][do not use]
* ---------------------------
* 200 FNC3 FNC3
* 201 FNC2 FNC2
* 202 ShiftA ShiftB
* 203 [SwitchToCset] [SwitchToCset]
* 204 [SwitchToBset] FNC4
* 205 FNC4 [SwitchToAset]
* 206 FNC1 FNC1
*******************************************************************************/
class PDF_Code128 extends FPDF {
var $T128; // tableau des codes 128
var $ABCset=""; // jeu des caract<63>res <20>ligibles au C128
var $Aset=""; // Set A du jeu des caract<63>res <20>ligibles
var $Bset=""; // Set B du jeu des caract<63>res <20>ligibles
var $Cset=""; // Set C du jeu des caract<63>res <20>ligibles
var $SetFrom; // Convertisseur source des jeux vers le tableau
var $SetTo; // Convertisseur destination des jeux vers le tableau
var $JStart = array("A"=>103, "B"=>104, "C"=>105); // Caract<63>res de s<>lection de jeu au d<>but du C128
var $JSwap = array("A"=>101, "B"=>100, "C"=>99); // Caract<63>res de changement de jeu
//____________________________ Extension du constructeur _______________________
function __construct($orientation='P', $unit='mm', $format='A4') {
parent::__construct($orientation,$unit,$format);
$this->T128[] = array(2, 1, 2, 2, 2, 2); //0 : [ ] // composition des caract<63>res
$this->T128[] = array(2, 2, 2, 1, 2, 2); //1 : [!]
$this->T128[] = array(2, 2, 2, 2, 2, 1); //2 : ["]
$this->T128[] = array(1, 2, 1, 2, 2, 3); //3 : [#]
$this->T128[] = array(1, 2, 1, 3, 2, 2); //4 : [$]
$this->T128[] = array(1, 3, 1, 2, 2, 2); //5 : [%]
$this->T128[] = array(1, 2, 2, 2, 1, 3); //6 : [&]
$this->T128[] = array(1, 2, 2, 3, 1, 2); //7 : [']
$this->T128[] = array(1, 3, 2, 2, 1, 2); //8 : [(]
$this->T128[] = array(2, 2, 1, 2, 1, 3); //9 : [)]
$this->T128[] = array(2, 2, 1, 3, 1, 2); //10 : [*]
$this->T128[] = array(2, 3, 1, 2, 1, 2); //11 : [+]
$this->T128[] = array(1, 1, 2, 2, 3, 2); //12 : [,]
$this->T128[] = array(1, 2, 2, 1, 3, 2); //13 : [-]
$this->T128[] = array(1, 2, 2, 2, 3, 1); //14 : [.]
$this->T128[] = array(1, 1, 3, 2, 2, 2); //15 : [/]
$this->T128[] = array(1, 2, 3, 1, 2, 2); //16 : [0]
$this->T128[] = array(1, 2, 3, 2, 2, 1); //17 : [1]
$this->T128[] = array(2, 2, 3, 2, 1, 1); //18 : [2]
$this->T128[] = array(2, 2, 1, 1, 3, 2); //19 : [3]
$this->T128[] = array(2, 2, 1, 2, 3, 1); //20 : [4]
$this->T128[] = array(2, 1, 3, 2, 1, 2); //21 : [5]
$this->T128[] = array(2, 2, 3, 1, 1, 2); //22 : [6]
$this->T128[] = array(3, 1, 2, 1, 3, 1); //23 : [7]
$this->T128[] = array(3, 1, 1, 2, 2, 2); //24 : [8]
$this->T128[] = array(3, 2, 1, 1, 2, 2); //25 : [9]
$this->T128[] = array(3, 2, 1, 2, 2, 1); //26 : [:]
$this->T128[] = array(3, 1, 2, 2, 1, 2); //27 : [;]
$this->T128[] = array(3, 2, 2, 1, 1, 2); //28 : [<]
$this->T128[] = array(3, 2, 2, 2, 1, 1); //29 : [=]
$this->T128[] = array(2, 1, 2, 1, 2, 3); //30 : [>]
$this->T128[] = array(2, 1, 2, 3, 2, 1); //31 : [?]
$this->T128[] = array(2, 3, 2, 1, 2, 1); //32 : [@]
$this->T128[] = array(1, 1, 1, 3, 2, 3); //33 : [A]
$this->T128[] = array(1, 3, 1, 1, 2, 3); //34 : [B]
$this->T128[] = array(1, 3, 1, 3, 2, 1); //35 : [C]
$this->T128[] = array(1, 1, 2, 3, 1, 3); //36 : [D]
$this->T128[] = array(1, 3, 2, 1, 1, 3); //37 : [E]
$this->T128[] = array(1, 3, 2, 3, 1, 1); //38 : [F]
$this->T128[] = array(2, 1, 1, 3, 1, 3); //39 : [G]
$this->T128[] = array(2, 3, 1, 1, 1, 3); //40 : [H]
$this->T128[] = array(2, 3, 1, 3, 1, 1); //41 : [I]
$this->T128[] = array(1, 1, 2, 1, 3, 3); //42 : [J]
$this->T128[] = array(1, 1, 2, 3, 3, 1); //43 : [K]
$this->T128[] = array(1, 3, 2, 1, 3, 1); //44 : [L]
$this->T128[] = array(1, 1, 3, 1, 2, 3); //45 : [M]
$this->T128[] = array(1, 1, 3, 3, 2, 1); //46 : [N]
$this->T128[] = array(1, 3, 3, 1, 2, 1); //47 : [O]
$this->T128[] = array(3, 1, 3, 1, 2, 1); //48 : [P]
$this->T128[] = array(2, 1, 1, 3, 3, 1); //49 : [Q]
$this->T128[] = array(2, 3, 1, 1, 3, 1); //50 : [R]
$this->T128[] = array(2, 1, 3, 1, 1, 3); //51 : [S]
$this->T128[] = array(2, 1, 3, 3, 1, 1); //52 : [T]
$this->T128[] = array(2, 1, 3, 1, 3, 1); //53 : [U]
$this->T128[] = array(3, 1, 1, 1, 2, 3); //54 : [V]
$this->T128[] = array(3, 1, 1, 3, 2, 1); //55 : [W]
$this->T128[] = array(3, 3, 1, 1, 2, 1); //56 : [X]
$this->T128[] = array(3, 1, 2, 1, 1, 3); //57 : [Y]
$this->T128[] = array(3, 1, 2, 3, 1, 1); //58 : [Z]
$this->T128[] = array(3, 3, 2, 1, 1, 1); //59 : [[]
$this->T128[] = array(3, 1, 4, 1, 1, 1); //60 : [\]
$this->T128[] = array(2, 2, 1, 4, 1, 1); //61 : []]
$this->T128[] = array(4, 3, 1, 1, 1, 1); //62 : [^]
$this->T128[] = array(1, 1, 1, 2, 2, 4); //63 : [_]
$this->T128[] = array(1, 1, 1, 4, 2, 2); //64 : [`]
$this->T128[] = array(1, 2, 1, 1, 2, 4); //65 : [a]
$this->T128[] = array(1, 2, 1, 4, 2, 1); //66 : [b]
$this->T128[] = array(1, 4, 1, 1, 2, 2); //67 : [c]
$this->T128[] = array(1, 4, 1, 2, 2, 1); //68 : [d]
$this->T128[] = array(1, 1, 2, 2, 1, 4); //69 : [e]
$this->T128[] = array(1, 1, 2, 4, 1, 2); //70 : [f]
$this->T128[] = array(1, 2, 2, 1, 1, 4); //71 : [g]
$this->T128[] = array(1, 2, 2, 4, 1, 1); //72 : [h]
$this->T128[] = array(1, 4, 2, 1, 1, 2); //73 : [i]
$this->T128[] = array(1, 4, 2, 2, 1, 1); //74 : [j]
$this->T128[] = array(2, 4, 1, 2, 1, 1); //75 : [k]
$this->T128[] = array(2, 2, 1, 1, 1, 4); //76 : [l]
$this->T128[] = array(4, 1, 3, 1, 1, 1); //77 : [m]
$this->T128[] = array(2, 4, 1, 1, 1, 2); //78 : [n]
$this->T128[] = array(1, 3, 4, 1, 1, 1); //79 : [o]
$this->T128[] = array(1, 1, 1, 2, 4, 2); //80 : [p]
$this->T128[] = array(1, 2, 1, 1, 4, 2); //81 : [q]
$this->T128[] = array(1, 2, 1, 2, 4, 1); //82 : [r]
$this->T128[] = array(1, 1, 4, 2, 1, 2); //83 : [s]
$this->T128[] = array(1, 2, 4, 1, 1, 2); //84 : [t]
$this->T128[] = array(1, 2, 4, 2, 1, 1); //85 : [u]
$this->T128[] = array(4, 1, 1, 2, 1, 2); //86 : [v]
$this->T128[] = array(4, 2, 1, 1, 1, 2); //87 : [w]
$this->T128[] = array(4, 2, 1, 2, 1, 1); //88 : [x]
$this->T128[] = array(2, 1, 2, 1, 4, 1); //89 : [y]
$this->T128[] = array(2, 1, 4, 1, 2, 1); //90 : [z]
$this->T128[] = array(4, 1, 2, 1, 2, 1); //91 : [{]
$this->T128[] = array(1, 1, 1, 1, 4, 3); //92 : [|]
$this->T128[] = array(1, 1, 1, 3, 4, 1); //93 : [}]
$this->T128[] = array(1, 3, 1, 1, 4, 1); //94 : [~]
$this->T128[] = array(1, 1, 4, 1, 1, 3); //95 : [DEL]
$this->T128[] = array(1, 1, 4, 3, 1, 1); //96 : [FNC3]
$this->T128[] = array(4, 1, 1, 1, 1, 3); //97 : [FNC2]
$this->T128[] = array(4, 1, 1, 3, 1, 1); //98 : [SHIFT]
$this->T128[] = array(1, 1, 3, 1, 4, 1); //99 : [Cswap]
$this->T128[] = array(1, 1, 4, 1, 3, 1); //100 : [Bswap]
$this->T128[] = array(3, 1, 1, 1, 4, 1); //101 : [Aswap]
$this->T128[] = array(4, 1, 1, 1, 3, 1); //102 : [FNC1]
$this->T128[] = array(2, 1, 1, 4, 1, 2); //103 : [Astart]
$this->T128[] = array(2, 1, 1, 2, 1, 4); //104 : [Bstart]
$this->T128[] = array(2, 1, 1, 2, 3, 2); //105 : [Cstart]
$this->T128[] = array(2, 3, 3, 1, 1, 1); //106 : [STOP]
$this->T128[] = array(2, 1); //107 : [END BAR]
for ($i = 32; $i <= 95; $i++) { // jeux de caract<63>res
$this->ABCset .= chr($i);
}
$this->Aset = $this->ABCset;
$this->Bset = $this->ABCset;
for ($i = 0; $i <= 31; $i++) {
$this->ABCset .= chr($i);
$this->Aset .= chr($i);
}
for ($i = 96; $i <= 127; $i++) {
$this->ABCset .= chr($i);
$this->Bset .= chr($i);
}
for ($i = 200; $i <= 210; $i++) { // controle 128
$this->ABCset .= chr($i);
$this->Aset .= chr($i);
$this->Bset .= chr($i);
}
$this->Cset="0123456789".chr(206);
for ($i=0; $i<96; $i++) { // convertisseurs des jeux A & B
@$this->SetFrom["A"] .= chr($i);
@$this->SetFrom["B"] .= chr($i + 32);
@$this->SetTo["A"] .= chr(($i < 32) ? $i+64 : $i-32);
@$this->SetTo["B"] .= chr($i);
}
for ($i=96; $i<107; $i++) { // contr<74>le des jeux A & B
@$this->SetFrom["A"] .= chr($i + 104);
@$this->SetFrom["B"] .= chr($i + 104);
@$this->SetTo["A"] .= chr($i);
@$this->SetTo["B"] .= chr($i);
}
}
//________________ Fonction encodage et dessin du code 128 _____________________
function Code128($x, $y, $code, $w, $h) {
$Aguid = ""; // Cr<43>ation des guides de choix ABC
$Bguid = "";
$Cguid = "";
for ($i=0; $i < strlen($code); $i++) {
$needle = substr($code,$i,1);
$Aguid .= ((strpos($this->Aset,$needle)===false) ? "N" : "O");
$Bguid .= ((strpos($this->Bset,$needle)===false) ? "N" : "O");
$Cguid .= ((strpos($this->Cset,$needle)===false) ? "N" : "O");
}
$SminiC = "OOOO";
$IminiC = 4;
$crypt = "";
while ($code > "") {
// BOUCLE PRINCIPALE DE CODAGE
$i = strpos($Cguid,$SminiC); // for<6F>age du jeu C, si possible
if ($i!==false) {
$Aguid [$i] = "N";
$Bguid [$i] = "N";
}
if (substr($Cguid,0,$IminiC) == $SminiC) { // jeu C
$crypt .= chr(($crypt > "") ? $this->JSwap["C"] : $this->JStart["C"]); // d<>but Cstart, sinon Cswap
$made = strpos($Cguid,"N"); // <20>tendu du set C
if ($made === false) {
$made = strlen($Cguid);
}
if (fmod($made,2)==1) {
$made--; // seulement un nombre pair
}
for ($i=0; $i < $made; $i += 2) {
$crypt .= chr(strval(substr($code,$i,2))); // conversion 2 par 2
}
$jeu = "C";
} else {
$madeA = strpos($Aguid,"N"); // <20>tendu du set A
if ($madeA === false) {
$madeA = strlen($Aguid);
}
$madeB = strpos($Bguid,"N"); // <20>tendu du set B
if ($madeB === false) {
$madeB = strlen($Bguid);
}
$made = (($madeA < $madeB) ? $madeB : $madeA ); // <20>tendu trait<69>e
$jeu = (($madeA < $madeB) ? "B" : "A" ); // Jeu en cours
$crypt .= chr(($crypt > "") ? $this->JSwap[$jeu] : $this->JStart[$jeu]); // d<>but start, sinon swap
$crypt .= strtr(substr($code, 0,$made), $this->SetFrom[$jeu], $this->SetTo[$jeu]); // conversion selon jeu
}
$code = substr($code,$made); // raccourcir l<>gende et guides de la zone trait<69>e
$Aguid = substr($Aguid,$made);
$Bguid = substr($Bguid,$made);
$Cguid = substr($Cguid,$made);
} // FIN BOUCLE PRINCIPALE
$check = ord($crypt[0]); // calcul de la somme de contr<74>le
for ($i=0; $i<strlen($crypt); $i++) {
$check += (ord($crypt[$i]) * $i);
}
$check %= 103;
$crypt .= chr($check) . chr(106) . chr(107); // Chaine Crypt<70>e compl<70>te
$i = (strlen($crypt) * 11) - 8; // calcul de la largeur du module
$modul = $w/$i;
for ($i=0; $i<strlen($crypt); $i++) { // BOUCLE D'IMPRESSION
$c = $this->T128[ord($crypt[$i])];
for ($j=0; $j<count($c); $j++) {
$this->Rect($x,$y,$c[$j]*$modul,$h,"F");
$x += ($c[$j++]+$c[$j])*$modul;
}
}
}
} // FIN DE CLASSE
?>

View File

@@ -0,0 +1,25 @@
<?php
$type='Type1';
$name='Arial-BoldMT';
$desc=array('Ascent'=>905,'Descent'=>-212,'CapHeight'=>716,'Flags'=>32,'FontBBox'=>'[-46 -210 972 919]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>750);
$up=-106;
$ut=105;
$cw=array(
chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750,
chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>750,chr(128)=>750,chr(129)=>750,chr(130)=>750,chr(131)=>750,
chr(132)=>750,chr(133)=>750,chr(134)=>750,chr(135)=>750,chr(136)=>750,chr(137)=>750,chr(138)=>750,chr(139)=>750,chr(140)=>750,chr(141)=>750,chr(142)=>750,chr(143)=>750,chr(144)=>750,chr(145)=>750,chr(146)=>750,chr(147)=>750,chr(148)=>750,chr(149)=>750,chr(150)=>750,chr(151)=>750,chr(152)=>750,chr(153)=>750,
chr(154)=>750,chr(155)=>750,chr(156)=>750,chr(157)=>750,chr(158)=>750,chr(159)=>750,chr(160)=>278,chr(161)=>722,chr(162)=>333,chr(163)=>611,chr(164)=>556,chr(165)=>611,chr(166)=>667,chr(167)=>556,chr(168)=>333,chr(169)=>667,chr(170)=>667,chr(171)=>611,chr(172)=>611,chr(173)=>333,chr(174)=>611,chr(175)=>611,
chr(176)=>400,chr(177)=>556,chr(178)=>333,chr(179)=>278,chr(180)=>333,chr(181)=>385,chr(182)=>556,chr(183)=>333,chr(184)=>333,chr(185)=>556,chr(186)=>556,chr(187)=>479,chr(188)=>500,chr(189)=>333,chr(190)=>500,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>611,
chr(198)=>722,chr(199)=>722,chr(200)=>722,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>667,chr(205)=>278,chr(206)=>278,chr(207)=>722,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>611,chr(223)=>611,chr(224)=>389,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>278,chr(230)=>556,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>556,chr(237)=>278,chr(238)=>278,chr(239)=>719,chr(240)=>611,chr(241)=>611,
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>549,chr(248)=>389,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>333,chr(255)=>333);
$enc='iso-8859-2';
$diff='128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef 161 /Aogonek /breve /Lslash 165 /Lcaron /Sacute 169 /Scaron /Scedilla /Tcaron /Zacute 174 /Zcaron /Zdotaccent 177 /aogonek /ogonek /lslash 181 /lcaron /sacute /caron 185 /scaron /scedilla /tcaron /zacute /hungarumlaut /zcaron /zdotaccent /Racute 195 /Abreve 197 /Lacute /Cacute 200 /Ccaron 202 /Eogonek 204 /Ecaron 207 /Dcaron /Dcroat /Nacute /Ncaron 213 /Ohungarumlaut 216 /Rcaron /Uring 219 /Uhungarumlaut 222 /Tcommaaccent 224 /racute 227 /abreve 229 /lacute /cacute 232 /ccaron 234 /eogonek 236 /ecaron 239 /dcaron /dcroat /nacute /ncaron 245 /ohungarumlaut 248 /rcaron /uring 251 /uhungarumlaut 254 /tcommaaccent /dotaccent';
$file='arialbdpl.z';
$size1=6214;
$size2=25825;
?>

View File

@@ -0,0 +1,25 @@
<?php
$type='Type1';
$name='ArialMT';
$desc=array('Ascent'=>905,'Descent'=>-212,'CapHeight'=>716,'Flags'=>32,'FontBBox'=>'[-46 -210 979 896]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>750);
$up=-106;
$ut=73;
$cw=array(
chr(0)=>750,chr(1)=>750,chr(2)=>750,chr(3)=>750,chr(4)=>750,chr(5)=>750,chr(6)=>750,chr(7)=>750,chr(8)=>750,chr(9)=>750,chr(10)=>750,chr(11)=>750,chr(12)=>750,chr(13)=>750,chr(14)=>750,chr(15)=>750,chr(16)=>750,chr(17)=>750,chr(18)=>750,chr(19)=>750,chr(20)=>750,chr(21)=>750,
chr(22)=>750,chr(23)=>750,chr(24)=>750,chr(25)=>750,chr(26)=>750,chr(27)=>750,chr(28)=>750,chr(29)=>750,chr(30)=>750,chr(31)=>750,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>750,chr(128)=>750,chr(129)=>750,chr(130)=>750,chr(131)=>750,
chr(132)=>750,chr(133)=>750,chr(134)=>750,chr(135)=>750,chr(136)=>750,chr(137)=>750,chr(138)=>750,chr(139)=>750,chr(140)=>750,chr(141)=>750,chr(142)=>750,chr(143)=>750,chr(144)=>750,chr(145)=>750,chr(146)=>750,chr(147)=>750,chr(148)=>750,chr(149)=>750,chr(150)=>750,chr(151)=>750,chr(152)=>750,chr(153)=>750,
chr(154)=>750,chr(155)=>750,chr(156)=>750,chr(157)=>750,chr(158)=>750,chr(159)=>750,chr(160)=>278,chr(161)=>667,chr(162)=>333,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>667,chr(167)=>556,chr(168)=>333,chr(169)=>667,chr(170)=>667,chr(171)=>611,chr(172)=>611,chr(173)=>333,chr(174)=>611,chr(175)=>611,
chr(176)=>400,chr(177)=>556,chr(178)=>333,chr(179)=>222,chr(180)=>333,chr(181)=>292,chr(182)=>500,chr(183)=>333,chr(184)=>333,chr(185)=>500,chr(186)=>500,chr(187)=>375,chr(188)=>500,chr(189)=>333,chr(190)=>500,chr(191)=>500,chr(192)=>722,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>556,
chr(198)=>722,chr(199)=>722,chr(200)=>722,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>667,chr(205)=>278,chr(206)=>278,chr(207)=>722,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>611,chr(223)=>611,chr(224)=>333,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>222,chr(230)=>500,chr(231)=>500,chr(232)=>500,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>556,chr(237)=>278,chr(238)=>278,chr(239)=>615,chr(240)=>556,chr(241)=>556,
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>549,chr(248)=>333,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>278,chr(255)=>333);
$enc='iso-8859-2';
$diff='128 /.notdef 130 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 142 /.notdef 145 /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 158 /.notdef /.notdef 161 /Aogonek /breve /Lslash 165 /Lcaron /Sacute 169 /Scaron /Scedilla /Tcaron /Zacute 174 /Zcaron /Zdotaccent 177 /aogonek /ogonek /lslash 181 /lcaron /sacute /caron 185 /scaron /scedilla /tcaron /zacute /hungarumlaut /zcaron /zdotaccent /Racute 195 /Abreve 197 /Lacute /Cacute 200 /Ccaron 202 /Eogonek 204 /Ecaron 207 /Dcaron /Dcroat /Nacute /Ncaron 213 /Ohungarumlaut 216 /Rcaron /Uring 219 /Uhungarumlaut 222 /Tcommaaccent 224 /racute 227 /abreve 229 /lacute /cacute 232 /ccaron 234 /eogonek 236 /ecaron 239 /dcaron /dcroat /nacute /ncaron 245 /ohungarumlaut 248 /rcaron /uring 251 /uhungarumlaut 254 /tcommaaccent /dotaccent';
$file='arialpl.z';
$size1=6199;
$size2=25285;
?>

Binary file not shown.

View File

@@ -0,0 +1,10 @@
<?php
$type = 'Core';
$name = 'Courier';
$up = -100;
$ut = 50;
for($i=0;$i<=255;$i++)
$cw[chr($i)] = 600;
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,10 @@
<?php
$type = 'Core';
$name = 'Courier-Bold';
$up = -100;
$ut = 50;
for($i=0;$i<=255;$i++)
$cw[chr($i)] = 600;
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,10 @@
<?php
$type = 'Core';
$name = 'Courier-BoldOblique';
$up = -100;
$ut = 50;
for($i=0;$i<=255;$i++)
$cw[chr($i)] = 600;
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,10 @@
<?php
$type = 'Core';
$name = 'Courier-Oblique';
$up = -100;
$ut = 50;
for($i=0;$i<=255;$i++)
$cw[chr($i)] = 600;
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=NotSpecified

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Helvetica';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Helvetica-Bold';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Helvetica-BoldOblique';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Helvetica-Oblique';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,374 @@
StartFontMetrics 4.1
FontName Arial-BoldMT
FullName Arial Bold
Notice © 2015 The Monotype Corporation. All Rights Reserved.
Hebrew OpenType Layout logic copyright © 2003 & 2007, Ralph Hancock & John Hudson. This layout logic for Biblical Hebrew is open source software under the MIT License; see embedded license description for details.
EncodingScheme FontSpecific
FamilyName Arial
Weight Bold
Version (Version 6.90)
Characters 190
ItalicAngle 0.0
Ascender 905
Descender -212
UnderlineThickness 105
UnderlinePosition -106
IsFixedPitch false
FontBBox -46 -210 972 919
StartCharMetrics 256
C 0 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 1 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 2 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 3 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 4 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 5 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 6 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 7 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 8 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 9 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 10 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 11 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 12 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 13 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 14 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 15 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 16 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 17 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 18 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 19 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 20 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 21 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 22 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 23 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 24 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 25 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 26 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 27 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 28 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 29 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 30 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 31 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 32 ; WX 278 ; N space ; B 90 0 238 716 ;
C 33 ; WX 333 ; N exclam ; B 90 0 238 716 ;
C 34 ; WX 474 ; N quotedbl ; B 55 461 424 716 ;
C 35 ; WX 556 ; N numbersign ; B 9 -12 544 728 ;
C 36 ; WX 556 ; N dollar ; B 34 -100 512 773 ;
C 37 ; WX 889 ; N percent ; B 43 -29 842 728 ;
C 38 ; WX 722 ; N ampersand ; B 44 -19 706 728 ;
C 39 ; WX 238 ; N quotesingle ; B 45 461 194 716 ;
C 40 ; WX 333 ; N parenleft ; B 52 -210 301 728 ;
C 41 ; WX 333 ; N parenright ; B 33 -210 281 728 ;
C 42 ; WX 389 ; N asterisk ; B 14 387 368 728 ;
C 43 ; WX 584 ; N plus ; B 42 103 542 604 ;
C 44 ; WX 278 ; N comma ; B 57 -160 206 137 ;
C 45 ; WX 333 ; N hyphen ; B 32 191 301 328 ;
C 46 ; WX 278 ; N period ; B 72 0 209 137 ;
C 47 ; WX 278 ; N slash ; B -1 -12 279 728 ;
C 48 ; WX 556 ; N zero ; B 42 -12 507 719 ;
C 49 ; WX 556 ; N one ; B 79 0 394 719 ;
C 50 ; WX 556 ; N two ; B 25 0 506 719 ;
C 51 ; WX 556 ; N three ; B 38 -12 513 719 ;
C 52 ; WX 556 ; N four ; B 19 0 533 719 ;
C 53 ; WX 556 ; N five ; B 44 -12 526 706 ;
C 54 ; WX 556 ; N six ; B 42 -12 521 719 ;
C 55 ; WX 556 ; N seven ; B 42 0 512 706 ;
C 56 ; WX 556 ; N eight ; B 41 -13 511 719 ;
C 57 ; WX 556 ; N nine ; B 32 -13 510 719 ;
C 58 ; WX 333 ; N colon ; B 98 0 235 519 ;
C 59 ; WX 333 ; N semicolon ; B 83 -160 231 519 ;
C 60 ; WX 584 ; N less ; B 46 82 537 625 ;
C 61 ; WX 584 ; N equal ; B 42 182 542 524 ;
C 62 ; WX 584 ; N greater ; B 46 81 538 625 ;
C 63 ; WX 611 ; N question ; B 52 0 565 723 ;
C 64 ; WX 975 ; N at ; B 30 -210 972 729 ;
C 65 ; WX 722 ; N A ; B 0 0 718 716 ;
C 66 ; WX 722 ; N B ; B 73 0 673 716 ;
C 67 ; WX 722 ; N C ; B 47 -12 671 728 ;
C 68 ; WX 722 ; N D ; B 72 0 672 716 ;
C 69 ; WX 667 ; N E ; B 73 0 617 716 ;
C 70 ; WX 611 ; N F ; B 74 0 564 716 ;
C 71 ; WX 778 ; N G ; B 48 -12 717 728 ;
C 72 ; WX 722 ; N H ; B 73 0 646 716 ;
C 73 ; WX 278 ; N I ; B 68 0 213 716 ;
C 74 ; WX 556 ; N J ; B 17 -12 475 716 ;
C 75 ; WX 722 ; N K ; B 75 0 720 716 ;
C 76 ; WX 611 ; N L ; B 77 0 581 710 ;
C 77 ; WX 833 ; N M ; B 71 0 762 716 ;
C 78 ; WX 722 ; N N ; B 74 0 642 716 ;
C 79 ; WX 778 ; N O ; B 43 -12 738 728 ;
C 80 ; WX 667 ; N P ; B 73 0 621 716 ;
C 81 ; WX 778 ; N Q ; B 43 -72 765 728 ;
C 82 ; WX 722 ; N R ; B 73 0 717 716 ;
C 83 ; WX 667 ; N S ; B 36 -13 618 728 ;
C 84 ; WX 611 ; N T ; B 21 0 590 716 ;
C 85 ; WX 722 ; N U ; B 72 -12 643 716 ;
C 86 ; WX 667 ; N V ; B 0 0 666 716 ;
C 87 ; WX 944 ; N W ; B 3 0 943 716 ;
C 88 ; WX 667 ; N X ; B 0 0 666 716 ;
C 89 ; WX 667 ; N Y ; B -1 0 668 716 ;
C 90 ; WX 611 ; N Z ; B 11 0 592 716 ;
C 91 ; WX 333 ; N bracketleft ; B 71 -202 314 716 ;
C 92 ; WX 278 ; N backslash ; B -1 -12 279 728 ;
C 93 ; WX 333 ; N bracketright ; B 19 -202 262 716 ;
C 94 ; WX 584 ; N asciicircum ; B 56 338 527 728 ;
C 95 ; WX 556 ; N underscore ; B -9 -198 561 -109 ;
C 96 ; WX 333 ; N grave ; B 21 582 242 728 ;
C 97 ; WX 556 ; N a ; B 36 -12 522 530 ;
C 98 ; WX 611 ; N b ; B 66 -12 572 716 ;
C 99 ; WX 556 ; N c ; B 42 -12 531 530 ;
C 100 ; WX 611 ; N d ; B 41 -12 547 716 ;
C 101 ; WX 556 ; N e ; B 32 -12 519 530 ;
C 102 ; WX 333 ; N f ; B 12 0 362 728 ;
C 103 ; WX 611 ; N g ; B 41 -210 547 530 ;
C 104 ; WX 611 ; N h ; B 71 0 543 716 ;
C 105 ; WX 278 ; N i ; B 72 0 209 716 ;
C 106 ; WX 278 ; N j ; B -46 -210 206 716 ;
C 107 ; WX 556 ; N k ; B 67 0 546 716 ;
C 108 ; WX 278 ; N l ; B 72 0 209 716 ;
C 109 ; WX 889 ; N m ; B 62 0 824 530 ;
C 110 ; WX 611 ; N n ; B 71 0 543 530 ;
C 111 ; WX 611 ; N o ; B 40 -12 575 530 ;
C 112 ; WX 611 ; N p ; B 68 -197 574 530 ;
C 113 ; WX 611 ; N q ; B 44 -197 548 530 ;
C 114 ; WX 389 ; N r ; B 66 0 402 530 ;
C 115 ; WX 556 ; N s ; B 23 -12 508 530 ;
C 116 ; WX 333 ; N t ; B 15 -12 321 702 ;
C 117 ; WX 611 ; N u ; B 69 -12 541 519 ;
C 118 ; WX 556 ; N v ; B 5 0 544 519 ;
C 119 ; WX 778 ; N w ; B 4 0 777 519 ;
C 120 ; WX 556 ; N x ; B 6 0 547 519 ;
C 121 ; WX 556 ; N y ; B 7 -210 540 519 ;
C 122 ; WX 500 ; N z ; B 17 0 479 519 ;
C 123 ; WX 389 ; N braceleft ; B 29 -210 363 728 ;
C 124 ; WX 280 ; N bar ; B 86 -210 195 728 ;
C 125 ; WX 389 ; N braceright ; B 22 -210 356 728 ;
C 126 ; WX 584 ; N asciitilde ; B 33 253 551 451 ;
C 127 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 128 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 129 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 130 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 131 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 132 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 133 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 134 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 135 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 136 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 137 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 138 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 139 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 140 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 141 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 142 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 143 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 144 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 145 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 146 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 147 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 148 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 149 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 150 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 151 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 152 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 153 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 154 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 155 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 156 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 157 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 158 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 159 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 160 ; WX 278 ; N space ; B 90 0 238 716 ;
C 161 ; WX 722 ; N Aogonek ; B 0 -206 718 716 ;
C 162 ; WX 333 ; N breve ; B 13 586 317 728 ;
C 163 ; WX 611 ; N Lslash ; B 5 0 584 716 ;
C 164 ; WX 556 ; N currency ; B 22 101 531 610 ;
C 165 ; WX 611 ; N Lcaron ; B 77 0 581 710 ;
C 166 ; WX 667 ; N Sacute ; B 36 -13 618 903 ;
C 167 ; WX 556 ; N section ; B 29 -210 521 728 ;
C 168 ; WX 333 ; N dieresis ; B 2 610 331 728 ;
C 169 ; WX 667 ; N Scaron ; B 36 -13 618 904 ;
C 170 ; WX 667 ; N Scedilla ; B 36 -205 618 728 ;
C 171 ; WX 611 ; N Tcaron ; B 21 0 590 904 ;
C 172 ; WX 611 ; N Zacute ; B 11 0 592 903 ;
C 173 ; WX 333 ; N hyphen ; B 32 191 301 328 ;
C 174 ; WX 611 ; N Zcaron ; B 11 0 592 904 ;
C 175 ; WX 611 ; N Zdotaccent ; B 11 0 592 890 ;
C 176 ; WX 400 ; N degree ; B 42 417 354 728 ;
C 177 ; WX 556 ; N aogonek ; B 36 -206 528 530 ;
C 178 ; WX 333 ; N ogonek ; B 28 -206 209 0 ;
C 179 ; WX 278 ; N lslash ; B 5 0 276 716 ;
C 180 ; WX 333 ; N acute ; B 91 582 313 728 ;
C 181 ; WX 385 ; N lcaron ; B 73 0 383 716 ;
C 182 ; WX 556 ; N sacute ; B 23 -12 508 728 ;
C 183 ; WX 333 ; N caron ; B 1 584 332 728 ;
C 184 ; WX 333 ; N cedilla ; B 19 -205 285 -6 ;
C 185 ; WX 556 ; N scaron ; B 23 -12 508 728 ;
C 186 ; WX 556 ; N scedilla ; B 23 -205 508 530 ;
C 187 ; WX 479 ; N tcaron ; B 15 -12 480 716 ;
C 188 ; WX 500 ; N zacute ; B 17 0 479 728 ;
C 189 ; WX 333 ; N hungarumlaut ; B 47 584 439 730 ;
C 190 ; WX 500 ; N zcaron ; B 17 0 479 728 ;
C 191 ; WX 500 ; N zdotaccent ; B 17 0 479 728 ;
C 192 ; WX 722 ; N Racute ; B 73 0 717 903 ;
C 193 ; WX 722 ; N Aacute ; B 0 0 718 903 ;
C 194 ; WX 722 ; N Acircumflex ; B 0 0 718 901 ;
C 195 ; WX 722 ; N Abreve ; B 0 0 718 896 ;
C 196 ; WX 722 ; N Adieresis ; B 0 0 718 875 ;
C 197 ; WX 611 ; N Lacute ; B 77 0 581 903 ;
C 198 ; WX 722 ; N Cacute ; B 47 -12 671 903 ;
C 199 ; WX 722 ; N Ccedilla ; B 47 -205 671 728 ;
C 200 ; WX 722 ; N Ccaron ; B 47 -12 671 904 ;
C 201 ; WX 667 ; N Eacute ; B 73 0 617 903 ;
C 202 ; WX 667 ; N Eogonek ; B 73 -206 617 716 ;
C 203 ; WX 667 ; N Edieresis ; B 73 0 617 875 ;
C 204 ; WX 667 ; N Ecaron ; B 73 0 617 904 ;
C 205 ; WX 278 ; N Iacute ; B 52 0 273 903 ;
C 206 ; WX 278 ; N Icircumflex ; B -21 0 310 901 ;
C 207 ; WX 722 ; N Dcaron ; B 72 0 672 904 ;
C 208 ; WX 722 ; N Dcroat ; B -1 0 673 716 ;
C 209 ; WX 722 ; N Nacute ; B 74 0 642 903 ;
C 210 ; WX 722 ; N Ncaron ; B 74 0 642 904 ;
C 211 ; WX 778 ; N Oacute ; B 43 -12 738 903 ;
C 212 ; WX 778 ; N Ocircumflex ; B 43 -12 738 901 ;
C 213 ; WX 778 ; N Ohungarumlaut ; B 43 -12 738 902 ;
C 214 ; WX 778 ; N Odieresis ; B 43 -12 738 875 ;
C 215 ; WX 584 ; N multiply ; B 53 115 530 591 ;
C 216 ; WX 722 ; N Rcaron ; B 73 0 717 904 ;
C 217 ; WX 722 ; N Uring ; B 72 -12 643 919 ;
C 218 ; WX 722 ; N Uacute ; B 72 -12 643 903 ;
C 219 ; WX 722 ; N Uhungarumlaut ; B 72 -12 643 902 ;
C 220 ; WX 722 ; N Udieresis ; B 72 -12 643 875 ;
C 221 ; WX 667 ; N Yacute ; B -1 0 668 903 ;
C 222 ; WX 611 ; N Tcommaaccent ; B 21 -205 590 716 ;
C 223 ; WX 611 ; N germandbls ; B 68 -12 576 728 ;
C 224 ; WX 389 ; N racute ; B 66 0 402 728 ;
C 225 ; WX 556 ; N aacute ; B 36 -12 522 728 ;
C 226 ; WX 556 ; N acircumflex ; B 36 -12 522 728 ;
C 227 ; WX 556 ; N abreve ; B 36 -12 522 728 ;
C 228 ; WX 556 ; N adieresis ; B 36 -12 522 728 ;
C 229 ; WX 278 ; N lacute ; B 59 0 280 898 ;
C 230 ; WX 556 ; N cacute ; B 42 -12 531 728 ;
C 231 ; WX 556 ; N ccedilla ; B 42 -205 531 530 ;
C 232 ; WX 556 ; N ccaron ; B 42 -12 531 728 ;
C 233 ; WX 556 ; N eacute ; B 32 -12 519 728 ;
C 234 ; WX 556 ; N eogonek ; B 32 -206 519 530 ;
C 235 ; WX 556 ; N edieresis ; B 32 -12 519 728 ;
C 236 ; WX 556 ; N ecaron ; B 32 -12 519 728 ;
C 237 ; WX 278 ; N iacute ; B 62 0 283 728 ;
C 238 ; WX 278 ; N icircumflex ; B -25 0 306 728 ;
C 239 ; WX 719 ; N dcaron ; B 40 -12 719 716 ;
C 240 ; WX 611 ; N dcroat ; B 41 -12 602 716 ;
C 241 ; WX 611 ; N nacute ; B 71 0 543 728 ;
C 242 ; WX 611 ; N ncaron ; B 71 0 543 728 ;
C 243 ; WX 611 ; N oacute ; B 40 -12 575 728 ;
C 244 ; WX 611 ; N ocircumflex ; B 40 -12 575 728 ;
C 245 ; WX 611 ; N ohungarumlaut ; B 40 -12 575 730 ;
C 246 ; WX 611 ; N odieresis ; B 40 -12 575 728 ;
C 247 ; WX 549 ; N divide ; B 24 90 524 616 ;
C 248 ; WX 389 ; N rcaron ; B 39 0 402 728 ;
C 249 ; WX 611 ; N uring ; B 69 -12 541 751 ;
C 250 ; WX 611 ; N uacute ; B 69 -12 541 728 ;
C 251 ; WX 611 ; N uhungarumlaut ; B 69 -12 548 730 ;
C 252 ; WX 611 ; N udieresis ; B 69 -12 541 728 ;
C 253 ; WX 556 ; N yacute ; B 7 -210 540 728 ;
C 254 ; WX 333 ; N tcommaaccent ; B 15 -205 324 702 ;
C 255 ; WX 333 ; N dotaccent ; B 100 598 235 728 ;
EndCharMetrics
StartKernData
StartKernPairs 93
KPX space A -37
KPX space Y -18
KPX one one -55
KPX A space -37
KPX A T -74
KPX A V -74
KPX A W -55
KPX A Y -92
KPX A v -37
KPX A w -18
KPX A y -37
KPX F comma -111
KPX F period -111
KPX F A -55
KPX L space -18
KPX L T -74
KPX L V -74
KPX L W -55
KPX L Y -92
KPX L y -37
KPX P space -18
KPX P comma -129
KPX P period -129
KPX P A -74
KPX R V -18
KPX R W -18
KPX R Y -37
KPX T comma -111
KPX T hyphen -55
KPX T period -111
KPX T colon -111
KPX T semicolon -111
KPX T A -74
KPX T O -18
KPX T a -74
KPX T c -74
KPX T e -74
KPX T i -18
KPX T o -74
KPX T r -55
KPX T s -74
KPX T u -74
KPX T w -74
KPX T y -74
KPX V comma -92
KPX V hyphen -55
KPX V period -92
KPX V colon -55
KPX V semicolon -55
KPX V A -74
KPX V a -55
KPX V e -55
KPX V i -18
KPX V o -74
KPX V r -55
KPX V u -37
KPX V y -37
KPX W comma -55
KPX W hyphen -20
KPX W period -55
KPX W colon -18
KPX W semicolon -18
KPX W A -55
KPX W a -37
KPX W e -18
KPX W i -9
KPX W o -18
KPX W r -18
KPX W u -18
KPX W y -18
KPX Y space -18
KPX Y comma -111
KPX Y hyphen -55
KPX Y period -111
KPX Y colon -74
KPX Y semicolon -74
KPX Y A -92
KPX Y a -55
KPX Y e -55
KPX Y i -37
KPX Y o -74
KPX Y p -55
KPX Y q -74
KPX Y u -55
KPX Y v -55
KPX r comma -55
KPX r period -55
KPX v comma -74
KPX v period -74
KPX w comma -37
KPX w period -37
KPX y comma -74
KPX y period -74
EndKernPairs

View File

@@ -0,0 +1,378 @@
StartFontMetrics 4.1
FontName ArialMT
FullName Arial
Notice © 2015 The Monotype Corporation. All Rights Reserved.
Hebrew OpenType Layout logic copyright © 2003 & 2007, Ralph Hancock & John Hudson. This layout logic for Biblical Hebrew is open source software under the MIT License; see embedded license description for details.
EncodingScheme FontSpecific
FamilyName Arial
Weight Regular
Version (Version 6.90)
Characters 190
ItalicAngle 0.0
Ascender 905
Descender -212
UnderlineThickness 73
UnderlinePosition -106
IsFixedPitch false
FontBBox -46 -210 979 896
StartCharMetrics 256
C 0 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 1 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 2 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 3 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 4 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 5 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 6 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 7 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 8 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 9 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 10 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 11 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 12 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 13 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 14 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 15 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 16 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 17 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 18 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 19 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 20 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 21 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 22 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 23 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 24 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 25 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 26 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 27 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 28 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 29 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 30 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 31 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 32 ; WX 278 ; N space ; B 86 0 195 716 ;
C 33 ; WX 278 ; N exclam ; B 86 0 195 716 ;
C 34 ; WX 355 ; N quotedbl ; B 46 462 308 716 ;
C 35 ; WX 556 ; N numbersign ; B 10 -12 543 728 ;
C 36 ; WX 556 ; N dollar ; B 36 -103 509 782 ;
C 37 ; WX 889 ; N percent ; B 58 -26 828 728 ;
C 38 ; WX 667 ; N ampersand ; B 43 -17 644 728 ;
C 39 ; WX 191 ; N quotesingle ; B 44 462 144 716 ;
C 40 ; WX 333 ; N parenleft ; B 61 -210 297 728 ;
C 41 ; WX 333 ; N parenright ; B 61 -210 297 728 ;
C 42 ; WX 389 ; N asterisk ; B 31 423 354 728 ;
C 43 ; WX 584 ; N plus ; B 56 116 528 589 ;
C 44 ; WX 278 ; N comma ; B 83 -142 189 100 ;
C 45 ; WX 333 ; N hyphen ; B 32 215 302 303 ;
C 46 ; WX 278 ; N period ; B 91 0 191 100 ;
C 47 ; WX 278 ; N slash ; B 0 -12 278 728 ;
C 48 ; WX 556 ; N zero ; B 42 -12 508 719 ;
C 49 ; WX 556 ; N one ; B 109 0 373 719 ;
C 50 ; WX 556 ; N two ; B 29 0 503 719 ;
C 51 ; WX 556 ; N three ; B 42 -13 511 719 ;
C 52 ; WX 556 ; N four ; B 13 0 508 716 ;
C 53 ; WX 556 ; N five ; B 42 -12 516 706 ;
C 54 ; WX 556 ; N six ; B 38 -12 510 719 ;
C 55 ; WX 556 ; N seven ; B 47 0 511 707 ;
C 56 ; WX 556 ; N eight ; B 41 -12 512 719 ;
C 57 ; WX 556 ; N nine ; B 42 -12 512 719 ;
C 58 ; WX 278 ; N colon ; B 90 0 190 519 ;
C 59 ; WX 278 ; N semicolon ; B 83 -142 189 519 ;
C 60 ; WX 584 ; N less ; B 55 110 529 595 ;
C 61 ; WX 584 ; N equal ; B 56 204 528 503 ;
C 62 ; WX 584 ; N greater ; B 55 110 529 595 ;
C 63 ; WX 556 ; N question ; B 44 0 506 728 ;
C 64 ; WX 1015 ; N at ; B 54 -210 979 729 ;
C 65 ; WX 667 ; N A ; B -1 0 668 716 ;
C 66 ; WX 667 ; N B ; B 73 0 614 716 ;
C 67 ; WX 722 ; N C ; B 50 -12 683 728 ;
C 68 ; WX 722 ; N D ; B 77 0 669 716 ;
C 69 ; WX 667 ; N E ; B 79 0 613 716 ;
C 70 ; WX 611 ; N F ; B 82 0 565 716 ;
C 71 ; WX 778 ; N G ; B 53 -12 715 728 ;
C 72 ; WX 722 ; N H ; B 80 0 642 716 ;
C 73 ; WX 278 ; N I ; B 93 0 188 716 ;
C 74 ; WX 500 ; N J ; B 27 -12 422 716 ;
C 75 ; WX 667 ; N K ; B 73 0 665 716 ;
C 76 ; WX 556 ; N L ; B 73 0 521 716 ;
C 77 ; WX 833 ; N M ; B 74 0 757 716 ;
C 78 ; WX 722 ; N N ; B 76 0 640 716 ;
C 79 ; WX 778 ; N O ; B 48 -12 733 729 ;
C 80 ; WX 667 ; N P ; B 77 0 624 716 ;
C 81 ; WX 778 ; N Q ; B 43 -56 741 729 ;
C 82 ; WX 722 ; N R ; B 79 0 709 716 ;
C 83 ; WX 667 ; N S ; B 45 -12 615 728 ;
C 84 ; WX 611 ; N T ; B 23 0 591 716 ;
C 85 ; WX 722 ; N U ; B 79 -12 642 716 ;
C 86 ; WX 667 ; N V ; B 4 0 659 716 ;
C 87 ; WX 944 ; N W ; B 12 0 933 716 ;
C 88 ; WX 667 ; N X ; B 4 0 661 716 ;
C 89 ; WX 667 ; N Y ; B 3 0 659 716 ;
C 90 ; WX 611 ; N Z ; B 20 0 586 716 ;
C 91 ; WX 278 ; N bracketleft ; B 68 -199 262 716 ;
C 92 ; WX 278 ; N backslash ; B 0 -12 278 728 ;
C 93 ; WX 278 ; N bracketright ; B 19 -199 213 716 ;
C 94 ; WX 469 ; N asciicircum ; B 26 337 443 728 ;
C 95 ; WX 556 ; N underscore ; B -15 -199 567 -135 ;
C 96 ; WX 333 ; N grave ; B 43 583 227 720 ;
C 97 ; WX 556 ; N a ; B 36 -12 514 530 ;
C 98 ; WX 556 ; N b ; B 65 -12 515 716 ;
C 99 ; WX 500 ; N c ; B 39 -12 491 530 ;
C 100 ; WX 556 ; N d ; B 34 -12 484 716 ;
C 101 ; WX 556 ; N e ; B 37 -12 515 530 ;
C 102 ; WX 278 ; N f ; B 9 0 313 728 ;
C 103 ; WX 556 ; N g ; B 32 -210 489 530 ;
C 104 ; WX 556 ; N h ; B 66 0 488 716 ;
C 105 ; WX 222 ; N i ; B 66 0 154 716 ;
C 106 ; WX 222 ; N j ; B -46 -210 153 716 ;
C 107 ; WX 500 ; N k ; B 66 0 496 716 ;
C 108 ; WX 222 ; N l ; B 64 0 152 716 ;
C 109 ; WX 833 ; N m ; B 66 0 769 530 ;
C 110 ; WX 556 ; N n ; B 66 0 487 530 ;
C 111 ; WX 556 ; N o ; B 33 -12 519 530 ;
C 112 ; WX 556 ; N p ; B 66 -199 516 530 ;
C 113 ; WX 556 ; N q ; B 35 -199 484 530 ;
C 114 ; WX 333 ; N r ; B 65 0 347 530 ;
C 115 ; WX 500 ; N s ; B 31 -12 461 530 ;
C 116 ; WX 278 ; N t ; B 18 -7 271 700 ;
C 117 ; WX 556 ; N u ; B 64 -12 484 519 ;
C 118 ; WX 500 ; N v ; B 13 0 488 519 ;
C 119 ; WX 722 ; N w ; B 3 0 714 519 ;
C 120 ; WX 500 ; N x ; B 7 0 493 519 ;
C 121 ; WX 500 ; N y ; B 16 -210 491 519 ;
C 122 ; WX 500 ; N z ; B 20 0 479 519 ;
C 123 ; WX 334 ; N braceleft ; B 28 -210 311 728 ;
C 124 ; WX 260 ; N bar ; B 92 -210 168 728 ;
C 125 ; WX 334 ; N braceright ; B 23 -210 306 728 ;
C 126 ; WX 584 ; N asciitilde ; B 42 272 542 432 ;
C 127 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 128 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 129 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 130 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 131 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 132 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 133 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 134 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 135 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 136 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 137 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 138 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 139 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 140 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 141 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 142 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 143 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 144 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 145 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 146 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 147 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 148 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 149 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 150 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 151 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 152 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 153 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 154 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 155 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 156 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 157 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 158 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 159 ; WX 750 ; N .notdef ; B 125 0 625 625 ;
C 160 ; WX 278 ; N space ; B 86 0 195 716 ;
C 161 ; WX 667 ; N Aogonek ; B -1 -210 671 716 ;
C 162 ; WX 333 ; N breve ; B 22 588 311 715 ;
C 163 ; WX 556 ; N Lslash ; B 0 0 521 716 ;
C 164 ; WX 556 ; N currency ; B 36 115 516 594 ;
C 165 ; WX 556 ; N Lcaron ; B 73 0 521 716 ;
C 166 ; WX 667 ; N Sacute ; B 45 -12 615 896 ;
C 167 ; WX 556 ; N section ; B 40 -210 510 728 ;
C 168 ; WX 333 ; N dieresis ; B 30 620 304 720 ;
C 169 ; WX 667 ; N Scaron ; B 45 -12 615 894 ;
C 170 ; WX 667 ; N Scedilla ; B 45 -201 615 728 ;
C 171 ; WX 611 ; N Tcaron ; B 23 0 591 894 ;
C 172 ; WX 611 ; N Zacute ; B 20 0 586 896 ;
C 173 ; WX 333 ; N hyphen ; B 32 215 302 303 ;
C 174 ; WX 611 ; N Zcaron ; B 20 0 586 894 ;
C 175 ; WX 611 ; N Zdotaccent ; B 20 0 586 869 ;
C 176 ; WX 400 ; N degree ; B 63 457 333 728 ;
C 177 ; WX 556 ; N aogonek ; B 36 -210 529 530 ;
C 178 ; WX 333 ; N ogonek ; B 37 -210 202 0 ;
C 179 ; WX 222 ; N lslash ; B 1 0 218 716 ;
C 180 ; WX 333 ; N acute ; B 108 583 289 720 ;
C 181 ; WX 292 ; N lcaron ; B 66 0 291 716 ;
C 182 ; WX 500 ; N sacute ; B 31 -12 461 720 ;
C 183 ; WX 333 ; N caron ; B 20 583 329 720 ;
C 184 ; WX 333 ; N cedilla ; B 52 -206 264 11 ;
C 185 ; WX 500 ; N scaron ; B 31 -12 461 720 ;
C 186 ; WX 500 ; N scedilla ; B 31 -196 461 530 ;
C 187 ; WX 375 ; N tcaron ; B 17 -7 374 716 ;
C 188 ; WX 500 ; N zacute ; B 20 0 479 720 ;
C 189 ; WX 333 ; N hungarumlaut ; B 28 583 373 720 ;
C 190 ; WX 500 ; N zcaron ; B 20 0 479 720 ;
C 191 ; WX 500 ; N zdotaccent ; B 20 0 479 692 ;
C 192 ; WX 722 ; N Racute ; B 79 0 709 896 ;
C 193 ; WX 667 ; N Aacute ; B -1 0 668 896 ;
C 194 ; WX 667 ; N Acircumflex ; B -1 0 668 896 ;
C 195 ; WX 667 ; N Abreve ; B -1 0 668 886 ;
C 196 ; WX 667 ; N Adieresis ; B -1 0 668 860 ;
C 197 ; WX 556 ; N Lacute ; B 73 0 521 896 ;
C 198 ; WX 722 ; N Cacute ; B 50 -12 683 896 ;
C 199 ; WX 722 ; N Ccedilla ; B 50 -206 683 728 ;
C 200 ; WX 722 ; N Ccaron ; B 50 -12 683 894 ;
C 201 ; WX 667 ; N Eacute ; B 79 0 613 896 ;
C 202 ; WX 667 ; N Eogonek ; B 79 -210 613 716 ;
C 203 ; WX 667 ; N Edieresis ; B 79 0 613 860 ;
C 204 ; WX 667 ; N Ecaron ; B 79 0 613 894 ;
C 205 ; WX 278 ; N Iacute ; B 69 0 249 896 ;
C 206 ; WX 278 ; N Icircumflex ; B -16 0 293 896 ;
C 207 ; WX 722 ; N Dcaron ; B 77 0 669 894 ;
C 208 ; WX 722 ; N Dcroat ; B -1 0 669 716 ;
C 209 ; WX 722 ; N Nacute ; B 76 0 640 896 ;
C 210 ; WX 722 ; N Ncaron ; B 76 0 640 896 ;
C 211 ; WX 778 ; N Oacute ; B 48 -12 733 896 ;
C 212 ; WX 778 ; N Ocircumflex ; B 48 -12 733 896 ;
C 213 ; WX 778 ; N Ohungarumlaut ; B 48 -12 733 896 ;
C 214 ; WX 778 ; N Odieresis ; B 48 -12 733 860 ;
C 215 ; WX 584 ; N multiply ; B 79 141 504 566 ;
C 216 ; WX 722 ; N Rcaron ; B 79 0 709 894 ;
C 217 ; WX 722 ; N Uring ; B 79 -12 642 896 ;
C 218 ; WX 722 ; N Uacute ; B 79 -12 642 896 ;
C 219 ; WX 722 ; N Uhungarumlaut ; B 79 -12 642 896 ;
C 220 ; WX 722 ; N Udieresis ; B 79 -12 642 860 ;
C 221 ; WX 667 ; N Yacute ; B 3 0 659 896 ;
C 222 ; WX 611 ; N Tcommaaccent ; B 23 -206 591 716 ;
C 223 ; WX 611 ; N germandbls ; B 75 -12 580 728 ;
C 224 ; WX 333 ; N racute ; B 65 0 347 720 ;
C 225 ; WX 556 ; N aacute ; B 36 -12 514 720 ;
C 226 ; WX 556 ; N acircumflex ; B 36 -12 514 720 ;
C 227 ; WX 556 ; N abreve ; B 36 -12 514 715 ;
C 228 ; WX 556 ; N adieresis ; B 36 -12 514 720 ;
C 229 ; WX 222 ; N lacute ; B 32 0 212 889 ;
C 230 ; WX 500 ; N cacute ; B 39 -12 491 720 ;
C 231 ; WX 500 ; N ccedilla ; B 39 -196 491 530 ;
C 232 ; WX 500 ; N ccaron ; B 39 -12 491 720 ;
C 233 ; WX 556 ; N eacute ; B 37 -12 515 720 ;
C 234 ; WX 556 ; N eogonek ; B 37 -210 515 530 ;
C 235 ; WX 556 ; N edieresis ; B 37 -12 515 720 ;
C 236 ; WX 556 ; N ecaron ; B 37 -12 515 720 ;
C 237 ; WX 278 ; N iacute ; B 92 0 272 720 ;
C 238 ; WX 278 ; N icircumflex ; B -8 0 301 720 ;
C 239 ; WX 615 ; N dcaron ; B 35 -12 616 716 ;
C 240 ; WX 556 ; N dcroat ; B 34 -12 555 716 ;
C 241 ; WX 556 ; N nacute ; B 66 0 487 720 ;
C 242 ; WX 556 ; N ncaron ; B 66 0 487 720 ;
C 243 ; WX 556 ; N oacute ; B 33 -12 519 720 ;
C 244 ; WX 556 ; N ocircumflex ; B 33 -12 519 720 ;
C 245 ; WX 556 ; N ohungarumlaut ; B 33 -12 519 720 ;
C 246 ; WX 556 ; N odieresis ; B 33 -12 519 720 ;
C 247 ; WX 549 ; N divide ; B 38 156 511 550 ;
C 248 ; WX 333 ; N rcaron ; B 29 0 347 720 ;
C 249 ; WX 556 ; N uring ; B 64 -12 484 741 ;
C 250 ; WX 556 ; N uacute ; B 64 -12 484 720 ;
C 251 ; WX 556 ; N uhungarumlaut ; B 64 -12 484 720 ;
C 252 ; WX 556 ; N udieresis ; B 64 -12 484 720 ;
C 253 ; WX 500 ; N yacute ; B 16 -210 491 720 ;
C 254 ; WX 278 ; N tcommaaccent ; B 18 -206 293 700 ;
C 255 ; WX 333 ; N dotaccent ; B 112 583 221 692 ;
EndCharMetrics
StartKernData
StartKernPairs 97
KPX space A -55
KPX space T -18
KPX space Y -18
KPX one one -74
KPX A space -55
KPX A T -74
KPX A V -74
KPX A W -37
KPX A Y -74
KPX A v -18
KPX A w -18
KPX A y -18
KPX F comma -111
KPX F period -111
KPX F A -55
KPX L space -37
KPX L T -74
KPX L V -74
KPX L W -74
KPX L Y -74
KPX L y -37
KPX P space -18
KPX P comma -129
KPX P period -129
KPX P A -74
KPX R T -18
KPX R V -18
KPX R W -18
KPX R Y -18
KPX T space -18
KPX T comma -111
KPX T hyphen -55
KPX T period -111
KPX T colon -111
KPX T semicolon -111
KPX T A -74
KPX T O -18
KPX T a -111
KPX T c -111
KPX T e -111
KPX T i -37
KPX T o -111
KPX T r -37
KPX T s -111
KPX T u -37
KPX T w -55
KPX T y -55
KPX V comma -92
KPX V hyphen -55
KPX V period -92
KPX V colon -37
KPX V semicolon -37
KPX V A -74
KPX V a -74
KPX V e -55
KPX V i -18
KPX V o -55
KPX V r -37
KPX V u -37
KPX V y -37
KPX W comma -55
KPX W hyphen -18
KPX W period -55
KPX W colon -18
KPX W semicolon -18
KPX W A -37
KPX W a -37
KPX W e -18
KPX W i 0
KPX W o -18
KPX W r -18
KPX W u -18
KPX W y -9
KPX Y space -18
KPX Y comma -129
KPX Y hyphen -92
KPX Y period -129
KPX Y colon -55
KPX Y semicolon -65
KPX Y A -74
KPX Y a -74
KPX Y e -92
KPX Y i -37
KPX Y o -92
KPX Y p -74
KPX Y q -92
KPX Y u -55
KPX Y v -55
KPX f f -18
KPX r comma -55
KPX r period -55
KPX v comma -74
KPX v period -74
KPX w comma -55
KPX w period -55
KPX y comma -74
KPX y period -74
EndKernPairs

View File

@@ -0,0 +1,251 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!89 U+2030 perthousand
!8A U+0160 Scaron
!8B U+2039 guilsinglleft
!8C U+015A Sacute
!8D U+0164 Tcaron
!8E U+017D Zcaron
!8F U+0179 Zacute
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9A U+0161 scaron
!9B U+203A guilsinglright
!9C U+015B sacute
!9D U+0165 tcaron
!9E U+017E zcaron
!9F U+017A zacute
!A0 U+00A0 space
!A1 U+02C7 caron
!A2 U+02D8 breve
!A3 U+0141 Lslash
!A4 U+00A4 currency
!A5 U+0104 Aogonek
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+015E Scedilla
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+017B Zdotaccent
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+02DB ogonek
!B3 U+0142 lslash
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+0105 aogonek
!BA U+015F scedilla
!BB U+00BB guillemotright
!BC U+013D Lcaron
!BD U+02DD hungarumlaut
!BE U+013E lcaron
!BF U+017C zdotaccent
!C0 U+0154 Racute
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+0102 Abreve
!C4 U+00C4 Adieresis
!C5 U+0139 Lacute
!C6 U+0106 Cacute
!C7 U+00C7 Ccedilla
!C8 U+010C Ccaron
!C9 U+00C9 Eacute
!CA U+0118 Eogonek
!CB U+00CB Edieresis
!CC U+011A Ecaron
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+010E Dcaron
!D0 U+0110 Dcroat
!D1 U+0143 Nacute
!D2 U+0147 Ncaron
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+0150 Ohungarumlaut
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+0158 Rcaron
!D9 U+016E Uring
!DA U+00DA Uacute
!DB U+0170 Uhungarumlaut
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+0162 Tcommaaccent
!DF U+00DF germandbls
!E0 U+0155 racute
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+0103 abreve
!E4 U+00E4 adieresis
!E5 U+013A lacute
!E6 U+0107 cacute
!E7 U+00E7 ccedilla
!E8 U+010D ccaron
!E9 U+00E9 eacute
!EA U+0119 eogonek
!EB U+00EB edieresis
!EC U+011B ecaron
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+010F dcaron
!F0 U+0111 dcroat
!F1 U+0144 nacute
!F2 U+0148 ncaron
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+0151 ohungarumlaut
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+0159 rcaron
!F9 U+016F uring
!FA U+00FA uacute
!FB U+0171 uhungarumlaut
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+0163 tcommaaccent
!FF U+02D9 dotaccent

View File

@@ -0,0 +1,255 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0402 afii10051
!81 U+0403 afii10052
!82 U+201A quotesinglbase
!83 U+0453 afii10100
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+20AC Euro
!89 U+2030 perthousand
!8A U+0409 afii10058
!8B U+2039 guilsinglleft
!8C U+040A afii10059
!8D U+040C afii10061
!8E U+040B afii10060
!8F U+040F afii10145
!90 U+0452 afii10099
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9A U+0459 afii10106
!9B U+203A guilsinglright
!9C U+045A afii10107
!9D U+045C afii10109
!9E U+045B afii10108
!9F U+045F afii10193
!A0 U+00A0 space
!A1 U+040E afii10062
!A2 U+045E afii10110
!A3 U+0408 afii10057
!A4 U+00A4 currency
!A5 U+0490 afii10050
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+0401 afii10023
!A9 U+00A9 copyright
!AA U+0404 afii10053
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+0407 afii10056
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+0406 afii10055
!B3 U+0456 afii10103
!B4 U+0491 afii10098
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+0451 afii10071
!B9 U+2116 afii61352
!BA U+0454 afii10101
!BB U+00BB guillemotright
!BC U+0458 afii10105
!BD U+0405 afii10054
!BE U+0455 afii10102
!BF U+0457 afii10104
!C0 U+0410 afii10017
!C1 U+0411 afii10018
!C2 U+0412 afii10019
!C3 U+0413 afii10020
!C4 U+0414 afii10021
!C5 U+0415 afii10022
!C6 U+0416 afii10024
!C7 U+0417 afii10025
!C8 U+0418 afii10026
!C9 U+0419 afii10027
!CA U+041A afii10028
!CB U+041B afii10029
!CC U+041C afii10030
!CD U+041D afii10031
!CE U+041E afii10032
!CF U+041F afii10033
!D0 U+0420 afii10034
!D1 U+0421 afii10035
!D2 U+0422 afii10036
!D3 U+0423 afii10037
!D4 U+0424 afii10038
!D5 U+0425 afii10039
!D6 U+0426 afii10040
!D7 U+0427 afii10041
!D8 U+0428 afii10042
!D9 U+0429 afii10043
!DA U+042A afii10044
!DB U+042B afii10045
!DC U+042C afii10046
!DD U+042D afii10047
!DE U+042E afii10048
!DF U+042F afii10049
!E0 U+0430 afii10065
!E1 U+0431 afii10066
!E2 U+0432 afii10067
!E3 U+0433 afii10068
!E4 U+0434 afii10069
!E5 U+0435 afii10070
!E6 U+0436 afii10072
!E7 U+0437 afii10073
!E8 U+0438 afii10074
!E9 U+0439 afii10075
!EA U+043A afii10076
!EB U+043B afii10077
!EC U+043C afii10078
!ED U+043D afii10079
!EE U+043E afii10080
!EF U+043F afii10081
!F0 U+0440 afii10082
!F1 U+0441 afii10083
!F2 U+0442 afii10084
!F3 U+0443 afii10085
!F4 U+0444 afii10086
!F5 U+0445 afii10087
!F6 U+0446 afii10088
!F7 U+0447 afii10089
!F8 U+0448 afii10090
!F9 U+0449 afii10091
!FA U+044A afii10092
!FB U+044B afii10093
!FC U+044C afii10094
!FD U+044D afii10095
!FE U+044E afii10096
!FF U+044F afii10097

View File

@@ -0,0 +1,251 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!83 U+0192 florin
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+02C6 circumflex
!89 U+2030 perthousand
!8A U+0160 Scaron
!8B U+2039 guilsinglleft
!8C U+0152 OE
!8E U+017D Zcaron
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!98 U+02DC tilde
!99 U+2122 trademark
!9A U+0161 scaron
!9B U+203A guilsinglright
!9C U+0153 oe
!9E U+017E zcaron
!9F U+0178 Ydieresis
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+00D0 Eth
!D1 U+00D1 Ntilde
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+00DE Thorn
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+00F0 eth
!F1 U+00F1 ntilde
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+00FE thorn
!FF U+00FF ydieresis

View File

@@ -0,0 +1,239 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!83 U+0192 florin
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!89 U+2030 perthousand
!8B U+2039 guilsinglleft
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9B U+203A guilsinglright
!A0 U+00A0 space
!A1 U+0385 dieresistonos
!A2 U+0386 Alphatonos
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+2015 afii00208
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+0384 tonos
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+0388 Epsilontonos
!B9 U+0389 Etatonos
!BA U+038A Iotatonos
!BB U+00BB guillemotright
!BC U+038C Omicrontonos
!BD U+00BD onehalf
!BE U+038E Upsilontonos
!BF U+038F Omegatonos
!C0 U+0390 iotadieresistonos
!C1 U+0391 Alpha
!C2 U+0392 Beta
!C3 U+0393 Gamma
!C4 U+0394 Delta
!C5 U+0395 Epsilon
!C6 U+0396 Zeta
!C7 U+0397 Eta
!C8 U+0398 Theta
!C9 U+0399 Iota
!CA U+039A Kappa
!CB U+039B Lambda
!CC U+039C Mu
!CD U+039D Nu
!CE U+039E Xi
!CF U+039F Omicron
!D0 U+03A0 Pi
!D1 U+03A1 Rho
!D3 U+03A3 Sigma
!D4 U+03A4 Tau
!D5 U+03A5 Upsilon
!D6 U+03A6 Phi
!D7 U+03A7 Chi
!D8 U+03A8 Psi
!D9 U+03A9 Omega
!DA U+03AA Iotadieresis
!DB U+03AB Upsilondieresis
!DC U+03AC alphatonos
!DD U+03AD epsilontonos
!DE U+03AE etatonos
!DF U+03AF iotatonos
!E0 U+03B0 upsilondieresistonos
!E1 U+03B1 alpha
!E2 U+03B2 beta
!E3 U+03B3 gamma
!E4 U+03B4 delta
!E5 U+03B5 epsilon
!E6 U+03B6 zeta
!E7 U+03B7 eta
!E8 U+03B8 theta
!E9 U+03B9 iota
!EA U+03BA kappa
!EB U+03BB lambda
!EC U+03BC mu
!ED U+03BD nu
!EE U+03BE xi
!EF U+03BF omicron
!F0 U+03C0 pi
!F1 U+03C1 rho
!F2 U+03C2 sigma1
!F3 U+03C3 sigma
!F4 U+03C4 tau
!F5 U+03C5 upsilon
!F6 U+03C6 phi
!F7 U+03C7 chi
!F8 U+03C8 psi
!F9 U+03C9 omega
!FA U+03CA iotadieresis
!FB U+03CB upsilondieresis
!FC U+03CC omicrontonos
!FD U+03CD upsilontonos
!FE U+03CE omegatonos

View File

@@ -0,0 +1,249 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!83 U+0192 florin
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+02C6 circumflex
!89 U+2030 perthousand
!8A U+0160 Scaron
!8B U+2039 guilsinglleft
!8C U+0152 OE
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!98 U+02DC tilde
!99 U+2122 trademark
!9A U+0161 scaron
!9B U+203A guilsinglright
!9C U+0153 oe
!9F U+0178 Ydieresis
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+011E Gbreve
!D1 U+00D1 Ntilde
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+0130 Idotaccent
!DE U+015E Scedilla
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+011F gbreve
!F1 U+00F1 ntilde
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+0131 dotlessi
!FE U+015F scedilla
!FF U+00FF ydieresis

View File

@@ -0,0 +1,233 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!83 U+0192 florin
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+02C6 circumflex
!89 U+2030 perthousand
!8B U+2039 guilsinglleft
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!98 U+02DC tilde
!99 U+2122 trademark
!9B U+203A guilsinglright
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+20AA afii57636
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00D7 multiply
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD sfthyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 middot
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00F7 divide
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+05B0 afii57799
!C1 U+05B1 afii57801
!C2 U+05B2 afii57800
!C3 U+05B3 afii57802
!C4 U+05B4 afii57793
!C5 U+05B5 afii57794
!C6 U+05B6 afii57795
!C7 U+05B7 afii57798
!C8 U+05B8 afii57797
!C9 U+05B9 afii57806
!CB U+05BB afii57796
!CC U+05BC afii57807
!CD U+05BD afii57839
!CE U+05BE afii57645
!CF U+05BF afii57841
!D0 U+05C0 afii57842
!D1 U+05C1 afii57804
!D2 U+05C2 afii57803
!D3 U+05C3 afii57658
!D4 U+05F0 afii57716
!D5 U+05F1 afii57717
!D6 U+05F2 afii57718
!D7 U+05F3 gereshhebrew
!D8 U+05F4 gershayimhebrew
!E0 U+05D0 afii57664
!E1 U+05D1 afii57665
!E2 U+05D2 afii57666
!E3 U+05D3 afii57667
!E4 U+05D4 afii57668
!E5 U+05D5 afii57669
!E6 U+05D6 afii57670
!E7 U+05D7 afii57671
!E8 U+05D8 afii57672
!E9 U+05D9 afii57673
!EA U+05DA afii57674
!EB U+05DB afii57675
!EC U+05DC afii57676
!ED U+05DD afii57677
!EE U+05DE afii57678
!EF U+05DF afii57679
!F0 U+05E0 afii57680
!F1 U+05E1 afii57681
!F2 U+05E2 afii57682
!F3 U+05E3 afii57683
!F4 U+05E4 afii57684
!F5 U+05E5 afii57685
!F6 U+05E6 afii57686
!F7 U+05E7 afii57687
!F8 U+05E8 afii57688
!F9 U+05E9 afii57689
!FA U+05EA afii57690
!FD U+200E afii299
!FE U+200F afii300

View File

@@ -0,0 +1,244 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!89 U+2030 perthousand
!8B U+2039 guilsinglleft
!8D U+00A8 dieresis
!8E U+02C7 caron
!8F U+00B8 cedilla
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9B U+203A guilsinglright
!9D U+00AF macron
!9E U+02DB ogonek
!A0 U+00A0 space
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00D8 Oslash
!A9 U+00A9 copyright
!AA U+0156 Rcommaaccent
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00C6 AE
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00F8 oslash
!B9 U+00B9 onesuperior
!BA U+0157 rcommaaccent
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00E6 ae
!C0 U+0104 Aogonek
!C1 U+012E Iogonek
!C2 U+0100 Amacron
!C3 U+0106 Cacute
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+0118 Eogonek
!C7 U+0112 Emacron
!C8 U+010C Ccaron
!C9 U+00C9 Eacute
!CA U+0179 Zacute
!CB U+0116 Edotaccent
!CC U+0122 Gcommaaccent
!CD U+0136 Kcommaaccent
!CE U+012A Imacron
!CF U+013B Lcommaaccent
!D0 U+0160 Scaron
!D1 U+0143 Nacute
!D2 U+0145 Ncommaaccent
!D3 U+00D3 Oacute
!D4 U+014C Omacron
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+0172 Uogonek
!D9 U+0141 Lslash
!DA U+015A Sacute
!DB U+016A Umacron
!DC U+00DC Udieresis
!DD U+017B Zdotaccent
!DE U+017D Zcaron
!DF U+00DF germandbls
!E0 U+0105 aogonek
!E1 U+012F iogonek
!E2 U+0101 amacron
!E3 U+0107 cacute
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+0119 eogonek
!E7 U+0113 emacron
!E8 U+010D ccaron
!E9 U+00E9 eacute
!EA U+017A zacute
!EB U+0117 edotaccent
!EC U+0123 gcommaaccent
!ED U+0137 kcommaaccent
!EE U+012B imacron
!EF U+013C lcommaaccent
!F0 U+0161 scaron
!F1 U+0144 nacute
!F2 U+0146 ncommaaccent
!F3 U+00F3 oacute
!F4 U+014D omacron
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+0173 uogonek
!F9 U+0142 lslash
!FA U+015B sacute
!FB U+016B umacron
!FC U+00FC udieresis
!FD U+017C zdotaccent
!FE U+017E zcaron
!FF U+02D9 dotaccent

View File

@@ -0,0 +1,247 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!83 U+0192 florin
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+02C6 circumflex
!89 U+2030 perthousand
!8B U+2039 guilsinglleft
!8C U+0152 OE
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!98 U+02DC tilde
!99 U+2122 trademark
!9B U+203A guilsinglright
!9C U+0153 oe
!9F U+0178 Ydieresis
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+0102 Abreve
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+0300 gravecomb
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+0110 Dcroat
!D1 U+00D1 Ntilde
!D2 U+0309 hookabovecomb
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+01A0 Ohorn
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+01AF Uhorn
!DE U+0303 tildecomb
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+0103 abreve
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+0301 acutecomb
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+0111 dcroat
!F1 U+00F1 ntilde
!F2 U+0323 dotbelowcomb
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+01A1 ohorn
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+01B0 uhorn
!FE U+20AB dong
!FF U+00FF ydieresis

View File

@@ -0,0 +1,225 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!85 U+2026 ellipsis
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!A0 U+00A0 space
!A1 U+0E01 kokaithai
!A2 U+0E02 khokhaithai
!A3 U+0E03 khokhuatthai
!A4 U+0E04 khokhwaithai
!A5 U+0E05 khokhonthai
!A6 U+0E06 khorakhangthai
!A7 U+0E07 ngonguthai
!A8 U+0E08 chochanthai
!A9 U+0E09 chochingthai
!AA U+0E0A chochangthai
!AB U+0E0B sosothai
!AC U+0E0C chochoethai
!AD U+0E0D yoyingthai
!AE U+0E0E dochadathai
!AF U+0E0F topatakthai
!B0 U+0E10 thothanthai
!B1 U+0E11 thonangmonthothai
!B2 U+0E12 thophuthaothai
!B3 U+0E13 nonenthai
!B4 U+0E14 dodekthai
!B5 U+0E15 totaothai
!B6 U+0E16 thothungthai
!B7 U+0E17 thothahanthai
!B8 U+0E18 thothongthai
!B9 U+0E19 nonuthai
!BA U+0E1A bobaimaithai
!BB U+0E1B poplathai
!BC U+0E1C phophungthai
!BD U+0E1D fofathai
!BE U+0E1E phophanthai
!BF U+0E1F fofanthai
!C0 U+0E20 phosamphaothai
!C1 U+0E21 momathai
!C2 U+0E22 yoyakthai
!C3 U+0E23 roruathai
!C4 U+0E24 ruthai
!C5 U+0E25 lolingthai
!C6 U+0E26 luthai
!C7 U+0E27 wowaenthai
!C8 U+0E28 sosalathai
!C9 U+0E29 sorusithai
!CA U+0E2A sosuathai
!CB U+0E2B hohipthai
!CC U+0E2C lochulathai
!CD U+0E2D oangthai
!CE U+0E2E honokhukthai
!CF U+0E2F paiyannoithai
!D0 U+0E30 saraathai
!D1 U+0E31 maihanakatthai
!D2 U+0E32 saraaathai
!D3 U+0E33 saraamthai
!D4 U+0E34 saraithai
!D5 U+0E35 saraiithai
!D6 U+0E36 sarauethai
!D7 U+0E37 saraueethai
!D8 U+0E38 sarauthai
!D9 U+0E39 sarauuthai
!DA U+0E3A phinthuthai
!DF U+0E3F bahtthai
!E0 U+0E40 saraethai
!E1 U+0E41 saraaethai
!E2 U+0E42 saraothai
!E3 U+0E43 saraaimaimuanthai
!E4 U+0E44 saraaimaimalaithai
!E5 U+0E45 lakkhangyaothai
!E6 U+0E46 maiyamokthai
!E7 U+0E47 maitaikhuthai
!E8 U+0E48 maiekthai
!E9 U+0E49 maithothai
!EA U+0E4A maitrithai
!EB U+0E4B maichattawathai
!EC U+0E4C thanthakhatthai
!ED U+0E4D nikhahitthai
!EE U+0E4E yamakkanthai
!EF U+0E4F fongmanthai
!F0 U+0E50 zerothai
!F1 U+0E51 onethai
!F2 U+0E52 twothai
!F3 U+0E53 threethai
!F4 U+0E54 fourthai
!F5 U+0E55 fivethai
!F6 U+0E56 sixthai
!F7 U+0E57 seventhai
!F8 U+0E58 eightthai
!F9 U+0E59 ninethai
!FA U+0E5A angkhankhuthai
!FB U+0E5B khomutthai

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+00D0 Eth
!D1 U+00D1 Ntilde
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+00DE Thorn
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+00F0 eth
!F1 U+00F1 ntilde
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+00FE thorn
!FF U+00FF ydieresis

View File

@@ -0,0 +1,248 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+0E01 kokaithai
!A2 U+0E02 khokhaithai
!A3 U+0E03 khokhuatthai
!A4 U+0E04 khokhwaithai
!A5 U+0E05 khokhonthai
!A6 U+0E06 khorakhangthai
!A7 U+0E07 ngonguthai
!A8 U+0E08 chochanthai
!A9 U+0E09 chochingthai
!AA U+0E0A chochangthai
!AB U+0E0B sosothai
!AC U+0E0C chochoethai
!AD U+0E0D yoyingthai
!AE U+0E0E dochadathai
!AF U+0E0F topatakthai
!B0 U+0E10 thothanthai
!B1 U+0E11 thonangmonthothai
!B2 U+0E12 thophuthaothai
!B3 U+0E13 nonenthai
!B4 U+0E14 dodekthai
!B5 U+0E15 totaothai
!B6 U+0E16 thothungthai
!B7 U+0E17 thothahanthai
!B8 U+0E18 thothongthai
!B9 U+0E19 nonuthai
!BA U+0E1A bobaimaithai
!BB U+0E1B poplathai
!BC U+0E1C phophungthai
!BD U+0E1D fofathai
!BE U+0E1E phophanthai
!BF U+0E1F fofanthai
!C0 U+0E20 phosamphaothai
!C1 U+0E21 momathai
!C2 U+0E22 yoyakthai
!C3 U+0E23 roruathai
!C4 U+0E24 ruthai
!C5 U+0E25 lolingthai
!C6 U+0E26 luthai
!C7 U+0E27 wowaenthai
!C8 U+0E28 sosalathai
!C9 U+0E29 sorusithai
!CA U+0E2A sosuathai
!CB U+0E2B hohipthai
!CC U+0E2C lochulathai
!CD U+0E2D oangthai
!CE U+0E2E honokhukthai
!CF U+0E2F paiyannoithai
!D0 U+0E30 saraathai
!D1 U+0E31 maihanakatthai
!D2 U+0E32 saraaathai
!D3 U+0E33 saraamthai
!D4 U+0E34 saraithai
!D5 U+0E35 saraiithai
!D6 U+0E36 sarauethai
!D7 U+0E37 saraueethai
!D8 U+0E38 sarauthai
!D9 U+0E39 sarauuthai
!DA U+0E3A phinthuthai
!DF U+0E3F bahtthai
!E0 U+0E40 saraethai
!E1 U+0E41 saraaethai
!E2 U+0E42 saraothai
!E3 U+0E43 saraaimaimuanthai
!E4 U+0E44 saraaimaimalaithai
!E5 U+0E45 lakkhangyaothai
!E6 U+0E46 maiyamokthai
!E7 U+0E47 maitaikhuthai
!E8 U+0E48 maiekthai
!E9 U+0E49 maithothai
!EA U+0E4A maitrithai
!EB U+0E4B maichattawathai
!EC U+0E4C thanthakhatthai
!ED U+0E4D nikhahitthai
!EE U+0E4E yamakkanthai
!EF U+0E4F fongmanthai
!F0 U+0E50 zerothai
!F1 U+0E51 onethai
!F2 U+0E52 twothai
!F3 U+0E53 threethai
!F4 U+0E54 fourthai
!F5 U+0E55 fivethai
!F6 U+0E56 sixthai
!F7 U+0E57 seventhai
!F8 U+0E58 eightthai
!F9 U+0E59 ninethai
!FA U+0E5A angkhankhuthai
!FB U+0E5B khomutthai

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+20AC Euro
!A5 U+00A5 yen
!A6 U+0160 Scaron
!A7 U+00A7 section
!A8 U+0161 scaron
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+017D Zcaron
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+017E zcaron
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+0152 OE
!BD U+0153 oe
!BE U+0178 Ydieresis
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+00D0 Eth
!D1 U+00D1 Ntilde
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+00DE Thorn
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+00F0 eth
!F1 U+00F1 ntilde
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+00FE thorn
!FF U+00FF ydieresis

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+0104 Aogonek
!A2 U+0105 aogonek
!A3 U+0141 Lslash
!A4 U+20AC Euro
!A5 U+201E quotedblbase
!A6 U+0160 Scaron
!A7 U+00A7 section
!A8 U+0161 scaron
!A9 U+00A9 copyright
!AA U+0218 Scommaaccent
!AB U+00AB guillemotleft
!AC U+0179 Zacute
!AD U+00AD hyphen
!AE U+017A zacute
!AF U+017B Zdotaccent
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+010C Ccaron
!B3 U+0142 lslash
!B4 U+017D Zcaron
!B5 U+201D quotedblright
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+017E zcaron
!B9 U+010D ccaron
!BA U+0219 scommaaccent
!BB U+00BB guillemotright
!BC U+0152 OE
!BD U+0153 oe
!BE U+0178 Ydieresis
!BF U+017C zdotaccent
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+0102 Abreve
!C4 U+00C4 Adieresis
!C5 U+0106 Cacute
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+0110 Dcroat
!D1 U+0143 Nacute
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+0150 Ohungarumlaut
!D6 U+00D6 Odieresis
!D7 U+015A Sacute
!D8 U+0170 Uhungarumlaut
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+0118 Eogonek
!DE U+021A Tcommaaccent
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+0103 abreve
!E4 U+00E4 adieresis
!E5 U+0107 cacute
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+0111 dcroat
!F1 U+0144 nacute
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+0151 ohungarumlaut
!F6 U+00F6 odieresis
!F7 U+015B sacute
!F8 U+0171 uhungarumlaut
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+0119 eogonek
!FE U+021B tcommaaccent
!FF U+00FF ydieresis

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+0104 Aogonek
!A2 U+02D8 breve
!A3 U+0141 Lslash
!A4 U+00A4 currency
!A5 U+013D Lcaron
!A6 U+015A Sacute
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+0160 Scaron
!AA U+015E Scedilla
!AB U+0164 Tcaron
!AC U+0179 Zacute
!AD U+00AD hyphen
!AE U+017D Zcaron
!AF U+017B Zdotaccent
!B0 U+00B0 degree
!B1 U+0105 aogonek
!B2 U+02DB ogonek
!B3 U+0142 lslash
!B4 U+00B4 acute
!B5 U+013E lcaron
!B6 U+015B sacute
!B7 U+02C7 caron
!B8 U+00B8 cedilla
!B9 U+0161 scaron
!BA U+015F scedilla
!BB U+0165 tcaron
!BC U+017A zacute
!BD U+02DD hungarumlaut
!BE U+017E zcaron
!BF U+017C zdotaccent
!C0 U+0154 Racute
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+0102 Abreve
!C4 U+00C4 Adieresis
!C5 U+0139 Lacute
!C6 U+0106 Cacute
!C7 U+00C7 Ccedilla
!C8 U+010C Ccaron
!C9 U+00C9 Eacute
!CA U+0118 Eogonek
!CB U+00CB Edieresis
!CC U+011A Ecaron
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+010E Dcaron
!D0 U+0110 Dcroat
!D1 U+0143 Nacute
!D2 U+0147 Ncaron
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+0150 Ohungarumlaut
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+0158 Rcaron
!D9 U+016E Uring
!DA U+00DA Uacute
!DB U+0170 Uhungarumlaut
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+0162 Tcommaaccent
!DF U+00DF germandbls
!E0 U+0155 racute
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+0103 abreve
!E4 U+00E4 adieresis
!E5 U+013A lacute
!E6 U+0107 cacute
!E7 U+00E7 ccedilla
!E8 U+010D ccaron
!E9 U+00E9 eacute
!EA U+0119 eogonek
!EB U+00EB edieresis
!EC U+011B ecaron
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+010F dcaron
!F0 U+0111 dcroat
!F1 U+0144 nacute
!F2 U+0148 ncaron
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+0151 ohungarumlaut
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+0159 rcaron
!F9 U+016F uring
!FA U+00FA uacute
!FB U+0171 uhungarumlaut
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+0163 tcommaaccent
!FF U+02D9 dotaccent

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+0104 Aogonek
!A2 U+0138 kgreenlandic
!A3 U+0156 Rcommaaccent
!A4 U+00A4 currency
!A5 U+0128 Itilde
!A6 U+013B Lcommaaccent
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+0160 Scaron
!AA U+0112 Emacron
!AB U+0122 Gcommaaccent
!AC U+0166 Tbar
!AD U+00AD hyphen
!AE U+017D Zcaron
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+0105 aogonek
!B2 U+02DB ogonek
!B3 U+0157 rcommaaccent
!B4 U+00B4 acute
!B5 U+0129 itilde
!B6 U+013C lcommaaccent
!B7 U+02C7 caron
!B8 U+00B8 cedilla
!B9 U+0161 scaron
!BA U+0113 emacron
!BB U+0123 gcommaaccent
!BC U+0167 tbar
!BD U+014A Eng
!BE U+017E zcaron
!BF U+014B eng
!C0 U+0100 Amacron
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+012E Iogonek
!C8 U+010C Ccaron
!C9 U+00C9 Eacute
!CA U+0118 Eogonek
!CB U+00CB Edieresis
!CC U+0116 Edotaccent
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+012A Imacron
!D0 U+0110 Dcroat
!D1 U+0145 Ncommaaccent
!D2 U+014C Omacron
!D3 U+0136 Kcommaaccent
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+0172 Uogonek
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+0168 Utilde
!DE U+016A Umacron
!DF U+00DF germandbls
!E0 U+0101 amacron
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+012F iogonek
!E8 U+010D ccaron
!E9 U+00E9 eacute
!EA U+0119 eogonek
!EB U+00EB edieresis
!EC U+0117 edotaccent
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+012B imacron
!F0 U+0111 dcroat
!F1 U+0146 ncommaaccent
!F2 U+014D omacron
!F3 U+0137 kcommaaccent
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+0173 uogonek
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+0169 utilde
!FE U+016B umacron
!FF U+02D9 dotaccent

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+0401 afii10023
!A2 U+0402 afii10051
!A3 U+0403 afii10052
!A4 U+0404 afii10053
!A5 U+0405 afii10054
!A6 U+0406 afii10055
!A7 U+0407 afii10056
!A8 U+0408 afii10057
!A9 U+0409 afii10058
!AA U+040A afii10059
!AB U+040B afii10060
!AC U+040C afii10061
!AD U+00AD hyphen
!AE U+040E afii10062
!AF U+040F afii10145
!B0 U+0410 afii10017
!B1 U+0411 afii10018
!B2 U+0412 afii10019
!B3 U+0413 afii10020
!B4 U+0414 afii10021
!B5 U+0415 afii10022
!B6 U+0416 afii10024
!B7 U+0417 afii10025
!B8 U+0418 afii10026
!B9 U+0419 afii10027
!BA U+041A afii10028
!BB U+041B afii10029
!BC U+041C afii10030
!BD U+041D afii10031
!BE U+041E afii10032
!BF U+041F afii10033
!C0 U+0420 afii10034
!C1 U+0421 afii10035
!C2 U+0422 afii10036
!C3 U+0423 afii10037
!C4 U+0424 afii10038
!C5 U+0425 afii10039
!C6 U+0426 afii10040
!C7 U+0427 afii10041
!C8 U+0428 afii10042
!C9 U+0429 afii10043
!CA U+042A afii10044
!CB U+042B afii10045
!CC U+042C afii10046
!CD U+042D afii10047
!CE U+042E afii10048
!CF U+042F afii10049
!D0 U+0430 afii10065
!D1 U+0431 afii10066
!D2 U+0432 afii10067
!D3 U+0433 afii10068
!D4 U+0434 afii10069
!D5 U+0435 afii10070
!D6 U+0436 afii10072
!D7 U+0437 afii10073
!D8 U+0438 afii10074
!D9 U+0439 afii10075
!DA U+043A afii10076
!DB U+043B afii10077
!DC U+043C afii10078
!DD U+043D afii10079
!DE U+043E afii10080
!DF U+043F afii10081
!E0 U+0440 afii10082
!E1 U+0441 afii10083
!E2 U+0442 afii10084
!E3 U+0443 afii10085
!E4 U+0444 afii10086
!E5 U+0445 afii10087
!E6 U+0446 afii10088
!E7 U+0447 afii10089
!E8 U+0448 afii10090
!E9 U+0449 afii10091
!EA U+044A afii10092
!EB U+044B afii10093
!EC U+044C afii10094
!ED U+044D afii10095
!EE U+044E afii10096
!EF U+044F afii10097
!F0 U+2116 afii61352
!F1 U+0451 afii10071
!F2 U+0452 afii10099
!F3 U+0453 afii10100
!F4 U+0454 afii10101
!F5 U+0455 afii10102
!F6 U+0456 afii10103
!F7 U+0457 afii10104
!F8 U+0458 afii10105
!F9 U+0459 afii10106
!FA U+045A afii10107
!FB U+045B afii10108
!FC U+045C afii10109
!FD U+00A7 section
!FE U+045E afii10110
!FF U+045F afii10193

View File

@@ -0,0 +1,250 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+2018 quoteleft
!A2 U+2019 quoteright
!A3 U+00A3 sterling
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AF U+2015 afii00208
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+0384 tonos
!B5 U+0385 dieresistonos
!B6 U+0386 Alphatonos
!B7 U+00B7 periodcentered
!B8 U+0388 Epsilontonos
!B9 U+0389 Etatonos
!BA U+038A Iotatonos
!BB U+00BB guillemotright
!BC U+038C Omicrontonos
!BD U+00BD onehalf
!BE U+038E Upsilontonos
!BF U+038F Omegatonos
!C0 U+0390 iotadieresistonos
!C1 U+0391 Alpha
!C2 U+0392 Beta
!C3 U+0393 Gamma
!C4 U+0394 Delta
!C5 U+0395 Epsilon
!C6 U+0396 Zeta
!C7 U+0397 Eta
!C8 U+0398 Theta
!C9 U+0399 Iota
!CA U+039A Kappa
!CB U+039B Lambda
!CC U+039C Mu
!CD U+039D Nu
!CE U+039E Xi
!CF U+039F Omicron
!D0 U+03A0 Pi
!D1 U+03A1 Rho
!D3 U+03A3 Sigma
!D4 U+03A4 Tau
!D5 U+03A5 Upsilon
!D6 U+03A6 Phi
!D7 U+03A7 Chi
!D8 U+03A8 Psi
!D9 U+03A9 Omega
!DA U+03AA Iotadieresis
!DB U+03AB Upsilondieresis
!DC U+03AC alphatonos
!DD U+03AD epsilontonos
!DE U+03AE etatonos
!DF U+03AF iotatonos
!E0 U+03B0 upsilondieresistonos
!E1 U+03B1 alpha
!E2 U+03B2 beta
!E3 U+03B3 gamma
!E4 U+03B4 delta
!E5 U+03B5 epsilon
!E6 U+03B6 zeta
!E7 U+03B7 eta
!E8 U+03B8 theta
!E9 U+03B9 iota
!EA U+03BA kappa
!EB U+03BB lambda
!EC U+03BC mu
!ED U+03BD nu
!EE U+03BE xi
!EF U+03BF omicron
!F0 U+03C0 pi
!F1 U+03C1 rho
!F2 U+03C2 sigma1
!F3 U+03C3 sigma
!F4 U+03C4 tau
!F5 U+03C5 upsilon
!F6 U+03C6 phi
!F7 U+03C7 chi
!F8 U+03C8 psi
!F9 U+03C9 omega
!FA U+03CA iotadieresis
!FB U+03CB upsilondieresis
!FC U+03CC omicrontonos
!FD U+03CD upsilontonos
!FE U+03CE omegatonos

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0080 .notdef
!81 U+0081 .notdef
!82 U+0082 .notdef
!83 U+0083 .notdef
!84 U+0084 .notdef
!85 U+0085 .notdef
!86 U+0086 .notdef
!87 U+0087 .notdef
!88 U+0088 .notdef
!89 U+0089 .notdef
!8A U+008A .notdef
!8B U+008B .notdef
!8C U+008C .notdef
!8D U+008D .notdef
!8E U+008E .notdef
!8F U+008F .notdef
!90 U+0090 .notdef
!91 U+0091 .notdef
!92 U+0092 .notdef
!93 U+0093 .notdef
!94 U+0094 .notdef
!95 U+0095 .notdef
!96 U+0096 .notdef
!97 U+0097 .notdef
!98 U+0098 .notdef
!99 U+0099 .notdef
!9A U+009A .notdef
!9B U+009B .notdef
!9C U+009C .notdef
!9D U+009D .notdef
!9E U+009E .notdef
!9F U+009F .notdef
!A0 U+00A0 space
!A1 U+00A1 exclamdown
!A2 U+00A2 cent
!A3 U+00A3 sterling
!A4 U+00A4 currency
!A5 U+00A5 yen
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+00AA ordfeminine
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+00AF macron
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+00B2 twosuperior
!B3 U+00B3 threesuperior
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+00B9 onesuperior
!BA U+00BA ordmasculine
!BB U+00BB guillemotright
!BC U+00BC onequarter
!BD U+00BD onehalf
!BE U+00BE threequarters
!BF U+00BF questiondown
!C0 U+00C0 Agrave
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+00C3 Atilde
!C4 U+00C4 Adieresis
!C5 U+00C5 Aring
!C6 U+00C6 AE
!C7 U+00C7 Ccedilla
!C8 U+00C8 Egrave
!C9 U+00C9 Eacute
!CA U+00CA Ecircumflex
!CB U+00CB Edieresis
!CC U+00CC Igrave
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+00CF Idieresis
!D0 U+011E Gbreve
!D1 U+00D1 Ntilde
!D2 U+00D2 Ograve
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+00D5 Otilde
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+00D8 Oslash
!D9 U+00D9 Ugrave
!DA U+00DA Uacute
!DB U+00DB Ucircumflex
!DC U+00DC Udieresis
!DD U+0130 Idotaccent
!DE U+015E Scedilla
!DF U+00DF germandbls
!E0 U+00E0 agrave
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+00E3 atilde
!E4 U+00E4 adieresis
!E5 U+00E5 aring
!E6 U+00E6 ae
!E7 U+00E7 ccedilla
!E8 U+00E8 egrave
!E9 U+00E9 eacute
!EA U+00EA ecircumflex
!EB U+00EB edieresis
!EC U+00EC igrave
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+00EF idieresis
!F0 U+011F gbreve
!F1 U+00F1 ntilde
!F2 U+00F2 ograve
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+00F5 otilde
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+00F8 oslash
!F9 U+00F9 ugrave
!FA U+00FA uacute
!FB U+00FB ucircumflex
!FC U+00FC udieresis
!FD U+0131 dotlessi
!FE U+015F scedilla
!FF U+00FF ydieresis

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+2500 SF100000
!81 U+2502 SF110000
!82 U+250C SF010000
!83 U+2510 SF030000
!84 U+2514 SF020000
!85 U+2518 SF040000
!86 U+251C SF080000
!87 U+2524 SF090000
!88 U+252C SF060000
!89 U+2534 SF070000
!8A U+253C SF050000
!8B U+2580 upblock
!8C U+2584 dnblock
!8D U+2588 block
!8E U+258C lfblock
!8F U+2590 rtblock
!90 U+2591 ltshade
!91 U+2592 shade
!92 U+2593 dkshade
!93 U+2320 integraltp
!94 U+25A0 filledbox
!95 U+2219 periodcentered
!96 U+221A radical
!97 U+2248 approxequal
!98 U+2264 lessequal
!99 U+2265 greaterequal
!9A U+00A0 space
!9B U+2321 integralbt
!9C U+00B0 degree
!9D U+00B2 twosuperior
!9E U+00B7 periodcentered
!9F U+00F7 divide
!A0 U+2550 SF430000
!A1 U+2551 SF240000
!A2 U+2552 SF510000
!A3 U+0451 afii10071
!A4 U+2553 SF520000
!A5 U+2554 SF390000
!A6 U+2555 SF220000
!A7 U+2556 SF210000
!A8 U+2557 SF250000
!A9 U+2558 SF500000
!AA U+2559 SF490000
!AB U+255A SF380000
!AC U+255B SF280000
!AD U+255C SF270000
!AE U+255D SF260000
!AF U+255E SF360000
!B0 U+255F SF370000
!B1 U+2560 SF420000
!B2 U+2561 SF190000
!B3 U+0401 afii10023
!B4 U+2562 SF200000
!B5 U+2563 SF230000
!B6 U+2564 SF470000
!B7 U+2565 SF480000
!B8 U+2566 SF410000
!B9 U+2567 SF450000
!BA U+2568 SF460000
!BB U+2569 SF400000
!BC U+256A SF540000
!BD U+256B SF530000
!BE U+256C SF440000
!BF U+00A9 copyright
!C0 U+044E afii10096
!C1 U+0430 afii10065
!C2 U+0431 afii10066
!C3 U+0446 afii10088
!C4 U+0434 afii10069
!C5 U+0435 afii10070
!C6 U+0444 afii10086
!C7 U+0433 afii10068
!C8 U+0445 afii10087
!C9 U+0438 afii10074
!CA U+0439 afii10075
!CB U+043A afii10076
!CC U+043B afii10077
!CD U+043C afii10078
!CE U+043D afii10079
!CF U+043E afii10080
!D0 U+043F afii10081
!D1 U+044F afii10097
!D2 U+0440 afii10082
!D3 U+0441 afii10083
!D4 U+0442 afii10084
!D5 U+0443 afii10085
!D6 U+0436 afii10072
!D7 U+0432 afii10067
!D8 U+044C afii10094
!D9 U+044B afii10093
!DA U+0437 afii10073
!DB U+0448 afii10090
!DC U+044D afii10095
!DD U+0449 afii10091
!DE U+0447 afii10089
!DF U+044A afii10092
!E0 U+042E afii10048
!E1 U+0410 afii10017
!E2 U+0411 afii10018
!E3 U+0426 afii10040
!E4 U+0414 afii10021
!E5 U+0415 afii10022
!E6 U+0424 afii10038
!E7 U+0413 afii10020
!E8 U+0425 afii10039
!E9 U+0418 afii10026
!EA U+0419 afii10027
!EB U+041A afii10028
!EC U+041B afii10029
!ED U+041C afii10030
!EE U+041D afii10031
!EF U+041E afii10032
!F0 U+041F afii10033
!F1 U+042F afii10049
!F2 U+0420 afii10034
!F3 U+0421 afii10035
!F4 U+0422 afii10036
!F5 U+0423 afii10037
!F6 U+0416 afii10024
!F7 U+0412 afii10019
!F8 U+042C afii10046
!F9 U+042B afii10045
!FA U+0417 afii10025
!FB U+0428 afii10042
!FC U+042D afii10047
!FD U+0429 afii10043
!FE U+0427 afii10041
!FF U+042A afii10044

View File

@@ -0,0 +1,256 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+2500 SF100000
!81 U+2502 SF110000
!82 U+250C SF010000
!83 U+2510 SF030000
!84 U+2514 SF020000
!85 U+2518 SF040000
!86 U+251C SF080000
!87 U+2524 SF090000
!88 U+252C SF060000
!89 U+2534 SF070000
!8A U+253C SF050000
!8B U+2580 upblock
!8C U+2584 dnblock
!8D U+2588 block
!8E U+258C lfblock
!8F U+2590 rtblock
!90 U+2591 ltshade
!91 U+2592 shade
!92 U+2593 dkshade
!93 U+2320 integraltp
!94 U+25A0 filledbox
!95 U+2022 bullet
!96 U+221A radical
!97 U+2248 approxequal
!98 U+2264 lessequal
!99 U+2265 greaterequal
!9A U+00A0 space
!9B U+2321 integralbt
!9C U+00B0 degree
!9D U+00B2 twosuperior
!9E U+00B7 periodcentered
!9F U+00F7 divide
!A0 U+2550 SF430000
!A1 U+2551 SF240000
!A2 U+2552 SF510000
!A3 U+0451 afii10071
!A4 U+0454 afii10101
!A5 U+2554 SF390000
!A6 U+0456 afii10103
!A7 U+0457 afii10104
!A8 U+2557 SF250000
!A9 U+2558 SF500000
!AA U+2559 SF490000
!AB U+255A SF380000
!AC U+255B SF280000
!AD U+0491 afii10098
!AE U+255D SF260000
!AF U+255E SF360000
!B0 U+255F SF370000
!B1 U+2560 SF420000
!B2 U+2561 SF190000
!B3 U+0401 afii10023
!B4 U+0404 afii10053
!B5 U+2563 SF230000
!B6 U+0406 afii10055
!B7 U+0407 afii10056
!B8 U+2566 SF410000
!B9 U+2567 SF450000
!BA U+2568 SF460000
!BB U+2569 SF400000
!BC U+256A SF540000
!BD U+0490 afii10050
!BE U+256C SF440000
!BF U+00A9 copyright
!C0 U+044E afii10096
!C1 U+0430 afii10065
!C2 U+0431 afii10066
!C3 U+0446 afii10088
!C4 U+0434 afii10069
!C5 U+0435 afii10070
!C6 U+0444 afii10086
!C7 U+0433 afii10068
!C8 U+0445 afii10087
!C9 U+0438 afii10074
!CA U+0439 afii10075
!CB U+043A afii10076
!CC U+043B afii10077
!CD U+043C afii10078
!CE U+043D afii10079
!CF U+043E afii10080
!D0 U+043F afii10081
!D1 U+044F afii10097
!D2 U+0440 afii10082
!D3 U+0441 afii10083
!D4 U+0442 afii10084
!D5 U+0443 afii10085
!D6 U+0436 afii10072
!D7 U+0432 afii10067
!D8 U+044C afii10094
!D9 U+044B afii10093
!DA U+0437 afii10073
!DB U+0448 afii10090
!DC U+044D afii10095
!DD U+0449 afii10091
!DE U+0447 afii10089
!DF U+044A afii10092
!E0 U+042E afii10048
!E1 U+0410 afii10017
!E2 U+0411 afii10018
!E3 U+0426 afii10040
!E4 U+0414 afii10021
!E5 U+0415 afii10022
!E6 U+0424 afii10038
!E7 U+0413 afii10020
!E8 U+0425 afii10039
!E9 U+0418 afii10026
!EA U+0419 afii10027
!EB U+041A afii10028
!EC U+041B afii10029
!ED U+041C afii10030
!EE U+041D afii10031
!EF U+041E afii10032
!F0 U+041F afii10033
!F1 U+042F afii10049
!F2 U+0420 afii10034
!F3 U+0421 afii10035
!F4 U+0422 afii10036
!F5 U+0423 afii10037
!F6 U+0416 afii10024
!F7 U+0412 afii10019
!F8 U+042C afii10046
!F9 U+042B afii10045
!FA U+0417 afii10025
!FB U+0428 afii10042
!FC U+042D afii10047
!FD U+0429 afii10043
!FE U+0427 afii10041
!FF U+042A afii10044

View File

@@ -0,0 +1,419 @@
<?php
/*******************************************************************************
* Utility to generate font definition files *
* *
* Version: 1.14 *
* Date: 2008-08-03 *
* A uthor: Olivier PLATHEY *
*******************************************************************************/
function ReadMap($enc)
{
//Read a map file
$file=dirname(__FILE__).'/'.strtolower($enc).'.map';
$a=file($file);
if(empty($a))
die('<b>Error:</b> encoding not found: '.$enc);
$cc2gn=array();
foreach($a as $l)
{
if($l[0]=='!')
{
$e=preg_split('/[ \\t]+/',rtrim($l));
$cc=hexdec(substr($e[0],1));
$gn=$e[2];
$cc2gn[$cc]=$gn;
}
}
for($i=0;$i<=255;$i++)
{
if(!isset($cc2gn[$i]))
$cc2gn[$i]='.notdef';
}
return $cc2gn;
}
function ReadAFM($file, &$map)
{
//Read a font metric file
$a=file($file);
if(empty($a))
die('File not found');
$widths=array();
$fm=array();
$fix=array('Edot'=>'Edotaccent','edot'=>'edotaccent','Idot'=>'Idotaccent','Zdot'=>'Zdotaccent','zdot'=>'zdotaccent',
'Odblacute'=>'Ohungarumlaut','odblacute'=>'ohungarumlaut','Udblacute'=>'Uhungarumlaut','udblacute'=>'uhungarumlaut',
'Gcedilla'=>'Gcommaaccent','gcedilla'=>'gcommaaccent','Kcedilla'=>'Kcommaaccent','kcedilla'=>'kcommaaccent',
'Lcedilla'=>'Lcommaaccent','lcedilla'=>'lcommaaccent','Ncedilla'=>'Ncommaaccent','ncedilla'=>'ncommaaccent',
'Rcedilla'=>'Rcommaaccent','rcedilla'=>'rcommaaccent','Scedilla'=>'Scommaaccent','scedilla'=>'scommaaccent',
'Tcedilla'=>'Tcommaaccent','tcedilla'=>'tcommaaccent','Dslash'=>'Dcroat','dslash'=>'dcroat','Dmacron'=>'Dcroat','dmacron'=>'dcroat',
'combininggraveaccent'=>'gravecomb','combininghookabove'=>'hookabovecomb','combiningtildeaccent'=>'tildecomb',
'combiningacuteaccent'=>'acutecomb','combiningdotbelow'=>'dotbelowcomb','dongsign'=>'dong');
foreach($a as $l)
{
$e=explode(' ',rtrim($l));
if(count($e)<2)
continue;
$code=$e[0];
$param=$e[1];
if($code=='C')
{
//Character metrics
$cc=(int)$e[1];
$w=$e[4];
$gn=$e[7];
if(substr($gn,-4)=='20AC')
$gn='Euro';
if(isset($fix[$gn]))
{
//Fix incorrect glyph name
foreach($map as $c=>$n)
{
if($n==$fix[$gn])
$map[$c]=$gn;
}
}
if(empty($map))
{
//Symbolic font: use built-in encoding
$widths[$cc]=$w;
}
else
{
$widths[$gn]=$w;
if($gn=='X')
$fm['CapXHeight']=$e[13];
}
if($gn=='.notdef')
$fm['MissingWidth']=$w;
}
elseif($code=='FontName')
$fm['FontName']=$param;
elseif($code=='Weight')
$fm['Weight']=$param;
elseif($code=='ItalicAngle')
$fm['ItalicAngle']=(double)$param;
elseif($code=='Ascender')
$fm['Ascender']=(int)$param;
elseif($code=='Descender')
$fm['Descender']=(int)$param;
elseif($code=='UnderlineThickness')
$fm['UnderlineThickness']=(int)$param;
elseif($code=='UnderlinePosition')
$fm['UnderlinePosition']=(int)$param;
elseif($code=='IsFixedPitch')
$fm['IsFixedPitch']=($param=='true');
elseif($code=='FontBBox')
$fm['FontBBox']=array($e[1],$e[2],$e[3],$e[4]);
elseif($code=='CapHeight')
$fm['CapHeight']=(int)$param;
elseif($code=='StdVW')
$fm['StdVW']=(int)$param;
}
if(!isset($fm['FontName']))
die('FontName not found');
if(!empty($map))
{
if(!isset($widths['.notdef']))
$widths['.notdef']=600;
if(!isset($widths['Delta']) && isset($widths['increment']))
$widths['Delta']=$widths['increment'];
//Order widths according to map
for($i=0;$i<=255;$i++)
{
if(!isset($widths[$map[$i]]))
{
echo '<b>Warning:</b> character '.$map[$i].' is missing<br>';
$widths[$i]=$widths['.notdef'];
}
else
$widths[$i]=$widths[$map[$i]];
}
}
$fm['Widths']=$widths;
return $fm;
}
function MakeFontDescriptor($fm, $symbolic)
{
//Ascent
$asc=(isset($fm['Ascender']) ? $fm['Ascender'] : 1000);
$fd="array('Ascent'=>".$asc;
//Descent
$desc=(isset($fm['Descender']) ? $fm['Descender'] : -200);
$fd.=",'Descent'=>".$desc;
//CapHeight
if(isset($fm['CapHeight']))
$ch=$fm['CapHeight'];
elseif(isset($fm['CapXHeight']))
$ch=$fm['CapXHeight'];
else
$ch=$asc;
$fd.=",'CapHeight'=>".$ch;
//Flags
$flags=0;
if(isset($fm['IsFixedPitch']) && $fm['IsFixedPitch'])
$flags+=1<<0;
if($symbolic)
$flags+=1<<2;
if(!$symbolic)
$flags+=1<<5;
if(isset($fm['ItalicAngle']) && $fm['ItalicAngle']!=0)
$flags+=1<<6;
$fd.=",'Flags'=>".$flags;
//FontBBox
if(isset($fm['FontBBox']))
$fbb=$fm['FontBBox'];
else
$fbb=array(0,$desc-100,1000,$asc+100);
$fd.=",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'";
//ItalicAngle
$ia=(isset($fm['ItalicAngle']) ? $fm['ItalicAngle'] : 0);
$fd.=",'ItalicAngle'=>".$ia;
//StemV
if(isset($fm['StdVW']))
$stemv=$fm['StdVW'];
elseif(isset($fm['Weight']) && preg_match('/bold|black/i',$fm['Weight']))
$stemv=120;
else
$stemv=70;
$fd.=",'StemV'=>".$stemv;
//MissingWidth
if(isset($fm['MissingWidth']))
$fd.=",'MissingWidth'=>".$fm['MissingWidth'];
$fd.=')';
return $fd;
}
function MakeWidthArray($fm)
{
//Make character width array
$s="array(\n\t";
$cw=$fm['Widths'];
for($i=0;$i<=255;$i++)
{
if(chr($i)=="'")
$s.="'\\''";
elseif(chr($i)=="\\")
$s.="'\\\\'";
elseif($i>=32 && $i<=126)
$s.="'".chr($i)."'";
else
$s.="chr($i)";
$s.='=>'.$fm['Widths'][$i];
if($i<255)
$s.=',';
if(($i+1)%22==0)
$s.="\n\t";
}
$s.=')';
return $s;
}
function MakeFontEncoding($map)
{
//Build differences from reference encoding
$ref=ReadMap('cp1252');
$s='';
$last=0;
for($i=32;$i<=255;$i++)
{
if($map[$i]!=$ref[$i])
{
if($i!=$last+1)
$s.=$i.' ';
$last=$i;
$s.='/'.$map[$i].' ';
}
}
return rtrim($s);
}
function SaveToFile($file, $s, $mode)
{
$f=fopen($file,'w'.$mode);
if(!$f)
die('Can\'t write to file '.$file);
fwrite($f,$s,strlen($s));
fclose($f);
}
function ReadShort($f)
{
$a=unpack('n1n',fread($f,2));
return $a['n'];
}
function ReadLong($f)
{
$a=unpack('N1N',fread($f,4));
return $a['N'];
}
function CheckTTF($file)
{
//Check if font license allows embedding
$f=fopen($file,'rb');
if(!$f)
die('<b>Error:</b> Can\'t open '.$file);
//Extract number of tables
fseek($f,4,SEEK_CUR);
$nb=ReadShort($f);
fseek($f,6,SEEK_CUR);
//Seek OS/2 table
$found=false;
for($i=0;$i<$nb;$i++)
{
if(fread($f,4)=='OS/2')
{
$found=true;
break;
}
fseek($f,12,SEEK_CUR);
}
if(!$found)
{
fclose($f);
return;
}
fseek($f,4,SEEK_CUR);
$offset=ReadLong($f);
fseek($f,$offset,SEEK_SET);
//Extract fsType flags
fseek($f,8,SEEK_CUR);
$fsType=ReadShort($f);
$rl=($fsType & 0x02)!=0;
$pp=($fsType & 0x04)!=0;
$e=($fsType & 0x08)!=0;
fclose($f);
if($rl && !$pp && !$e)
echo '<b>Warning:</b> font license does not allow embedding';
}
/*******************************************************************************
* fontfile: path to TTF file (or empty string if not to be embedded) *
* afmfile: path to AFM file *
* enc: font encoding (or empty string for symbolic fonts) *
* patch: optional patch for encoding *
* type: font type if fontfile is empty *
*******************************************************************************/
function MakeFont($fontfile, $afmfile, $enc='cp1252', $patch=array(), $type='TrueType')
{
//Generate a font definition file
if(get_magic_quotes_runtime())
@set_magic_quotes_runtime(0);
ini_set('auto_detect_line_endings','1');
if($enc)
{
$map=ReadMap($enc);
foreach($patch as $cc=>$gn)
$map[$cc]=$gn;
}
else
$map=array();
if(!file_exists($afmfile))
die('<b>Error:</b> AFM file not found: '.$afmfile);
$fm=ReadAFM($afmfile,$map);
if($enc)
$diff=MakeFontEncoding($map);
else
$diff='';
$fd=MakeFontDescriptor($fm,empty($map));
//Find font type
if($fontfile)
{
$ext=strtolower(substr($fontfile,-3));
if($ext=='ttf')
$type='TrueType';
elseif($ext=='pfb')
$type='Type1';
else
die('<b>Error:</b> unrecognized font file extension: '.$ext);
}
else
{
if($type!='TrueType' && $type!='Type1')
die('<b>Error:</b> incorrect font type: '.$type);
}
//Start generation
$s='<?php'."\n";
$s.='$type=\''.$type."';\n";
$s.='$name=\''.$fm['FontName']."';\n";
$s.='$desc='.$fd.";\n";
if(!isset($fm['UnderlinePosition']))
$fm['UnderlinePosition']=-100;
if(!isset($fm['UnderlineThickness']))
$fm['UnderlineThickness']=50;
$s.='$up='.$fm['UnderlinePosition'].";\n";
$s.='$ut='.$fm['UnderlineThickness'].";\n";
$w=MakeWidthArray($fm);
$s.='$cw='.$w.";\n";
$s.='$enc=\''.$enc."';\n";
$s.='$diff=\''.$diff."';\n";
$basename=substr(basename($afmfile),0,-4);
if($fontfile)
{
//Embedded font
if(!file_exists($fontfile))
die('<b>Error:</b> font file not found: '.$fontfile);
if($type=='TrueType')
CheckTTF($fontfile);
$f=fopen($fontfile,'rb');
if(!$f)
die('<b>Error:</b> Can\'t open '.$fontfile);
$file=fread($f,filesize($fontfile));
fclose($f);
if($type=='Type1')
{
//Find first two sections and discard third one
$header=(ord($file[0])==128);
if($header)
{
//Strip first binary header
$file=substr($file,6);
}
$pos=strpos($file,'eexec');
if(!$pos)
die('<b>Error:</b> font file does not seem to be valid Type1');
$size1=$pos+6;
if($header && ord($file[$size1])==128)
{
//Strip second binary header
$file=substr($file,0,$size1).substr($file,$size1+6);
}
$pos=strpos($file,'00000000');
if(!$pos)
die('<b>Error:</b> font file does not seem to be valid Type1');
$size2=$pos-$size1;
$file=substr($file,0,$size1+$size2);
}
if(function_exists('gzcompress'))
{
$cmp=$basename.'.z';
SaveToFile($cmp,gzcompress($file),'b');
$s.='$file=\''.$cmp."';\n";
echo 'Font file compressed ('.$cmp.')<br>';
}
else
{
$s.='$file=\''.basename($fontfile)."';\n";
echo '<b>Notice:</b> font file could not be compressed (zlib extension not available)<br>';
}
if($type=='Type1')
{
$s.='$size1='.$size1.";\n";
$s.='$size2='.$size2.";\n";
}
else
$s.='$originalsize='.filesize($fontfile).";\n";
}
else
{
//Not embedded font
$s.='$file='."'';\n";
}
$s.="?>\n";
SaveToFile($basename.'.php',$s,'t');
echo 'Font definition file generated ('.$basename.'.php'.')<br>';
}
?>

View File

@@ -0,0 +1,20 @@
<?php
$type = 'Core';
$name = 'Symbol';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
$uv = array(32=>160,33=>33,34=>8704,35=>35,36=>8707,37=>array(37,2),39=>8715,40=>array(40,2),42=>8727,43=>array(43,2),45=>8722,46=>array(46,18),64=>8773,65=>array(913,2),67=>935,68=>array(916,2),70=>934,71=>915,72=>919,73=>921,74=>977,75=>array(922,4),79=>array(927,2),81=>920,82=>929,83=>array(931,3),86=>962,87=>937,88=>926,89=>936,90=>918,91=>91,92=>8756,93=>93,94=>8869,95=>95,96=>63717,97=>array(945,2),99=>967,100=>array(948,2),102=>966,103=>947,104=>951,105=>953,106=>981,107=>array(954,4),111=>array(959,2),113=>952,114=>961,115=>array(963,3),118=>982,119=>969,120=>958,121=>968,122=>950,123=>array(123,3),126=>8764,160=>8364,161=>978,162=>8242,163=>8804,164=>8725,165=>8734,166=>402,167=>9827,168=>9830,169=>9829,170=>9824,171=>8596,172=>array(8592,4),176=>array(176,2),178=>8243,179=>8805,180=>215,181=>8733,182=>8706,183=>8226,184=>247,185=>array(8800,2),187=>8776,188=>8230,189=>array(63718,2),191=>8629,192=>8501,193=>8465,194=>8476,195=>8472,196=>8855,197=>8853,198=>8709,199=>array(8745,2),201=>8835,202=>8839,203=>8836,204=>8834,205=>8838,206=>array(8712,2),208=>8736,209=>8711,210=>63194,211=>63193,212=>63195,213=>8719,214=>8730,215=>8901,216=>172,217=>array(8743,2),219=>8660,220=>array(8656,4),224=>9674,225=>9001,226=>array(63720,3),229=>8721,230=>array(63723,10),241=>9002,242=>8747,243=>8992,244=>63733,245=>8993,246=>array(63734,9));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Times-Roman';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Times-Bold';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>555,'#'=>500,'$'=>500,'%'=>1000,'&'=>833,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>930,'A'=>722,
'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>778,'I'=>389,'J'=>500,'K'=>778,'L'=>667,'M'=>944,'N'=>722,'O'=>778,'P'=>611,'Q'=>778,'R'=>722,'S'=>556,'T'=>667,'U'=>722,'V'=>722,'W'=>1000,
'X'=>722,'Y'=>722,'Z'=>667,'['=>333,'\\'=>278,']'=>333,'^'=>581,'_'=>500,'`'=>333,'a'=>500,'b'=>556,'c'=>444,'d'=>556,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>333,'k'=>556,'l'=>278,'m'=>833,
'n'=>556,'o'=>500,'p'=>556,'q'=>556,'r'=>444,'s'=>389,'t'=>333,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>394,'|'=>220,'}'=>394,'~'=>520,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>667,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>300,chr(171)=>500,chr(172)=>570,chr(173)=>333,chr(174)=>747,chr(175)=>333,
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>556,chr(182)=>540,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>330,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>570,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>722,chr(222)=>611,chr(223)=>556,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Times-BoldItalic';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,21 @@
<?php
$type = 'Core';
$name = 'Times-Italic';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>420,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>214,'('=>333,')'=>333,'*'=>500,'+'=>675,
','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>675,'='=>675,'>'=>675,'?'=>500,'@'=>920,'A'=>611,
'B'=>611,'C'=>667,'D'=>722,'E'=>611,'F'=>611,'G'=>722,'H'=>722,'I'=>333,'J'=>444,'K'=>667,'L'=>556,'M'=>833,'N'=>667,'O'=>722,'P'=>611,'Q'=>722,'R'=>611,'S'=>500,'T'=>556,'U'=>722,'V'=>611,'W'=>833,
'X'=>611,'Y'=>556,'Z'=>556,'['=>389,'\\'=>278,']'=>389,'^'=>422,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>278,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>444,'l'=>278,'m'=>722,
'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>500,'v'=>444,'w'=>667,'x'=>444,'y'=>444,'z'=>389,'{'=>400,'|'=>275,'}'=>400,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
chr(132)=>556,chr(133)=>889,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>500,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>556,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>556,chr(148)=>556,chr(149)=>350,chr(150)=>500,chr(151)=>889,chr(152)=>333,chr(153)=>980,
chr(154)=>389,chr(155)=>333,chr(156)=>667,chr(157)=>350,chr(158)=>389,chr(159)=>556,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>275,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>675,chr(173)=>333,chr(174)=>760,chr(175)=>333,
chr(176)=>400,chr(177)=>675,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>523,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>611,chr(193)=>611,chr(194)=>611,chr(195)=>611,chr(196)=>611,chr(197)=>611,
chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>667,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>675,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
chr(220)=>722,chr(221)=>556,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>675,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>444,chr(254)=>500,chr(255)=>444);
$enc = 'cp1252';
$uv = array(0=>array(0,128),128=>8364,130=>8218,131=>402,132=>8222,133=>8230,134=>array(8224,2),136=>710,137=>8240,138=>352,139=>8249,140=>338,142=>381,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),152=>732,153=>8482,154=>353,155=>8250,156=>339,158=>382,159=>376,160=>array(160,96));
?>

View File

@@ -0,0 +1,20 @@
<?php
$type = 'Core';
$name = 'ZapfDingbats';
$up = -100;
$ut = 50;
$cw = array(
chr(0)=>0,chr(1)=>0,chr(2)=>0,chr(3)=>0,chr(4)=>0,chr(5)=>0,chr(6)=>0,chr(7)=>0,chr(8)=>0,chr(9)=>0,chr(10)=>0,chr(11)=>0,chr(12)=>0,chr(13)=>0,chr(14)=>0,chr(15)=>0,chr(16)=>0,chr(17)=>0,chr(18)=>0,chr(19)=>0,chr(20)=>0,chr(21)=>0,
chr(22)=>0,chr(23)=>0,chr(24)=>0,chr(25)=>0,chr(26)=>0,chr(27)=>0,chr(28)=>0,chr(29)=>0,chr(30)=>0,chr(31)=>0,' '=>278,'!'=>974,'"'=>961,'#'=>974,'$'=>980,'%'=>719,'&'=>789,'\''=>790,'('=>791,')'=>690,'*'=>960,'+'=>939,
','=>549,'-'=>855,'.'=>911,'/'=>933,'0'=>911,'1'=>945,'2'=>974,'3'=>755,'4'=>846,'5'=>762,'6'=>761,'7'=>571,'8'=>677,'9'=>763,':'=>760,';'=>759,'<'=>754,'='=>494,'>'=>552,'?'=>537,'@'=>577,'A'=>692,
'B'=>786,'C'=>788,'D'=>788,'E'=>790,'F'=>793,'G'=>794,'H'=>816,'I'=>823,'J'=>789,'K'=>841,'L'=>823,'M'=>833,'N'=>816,'O'=>831,'P'=>923,'Q'=>744,'R'=>723,'S'=>749,'T'=>790,'U'=>792,'V'=>695,'W'=>776,
'X'=>768,'Y'=>792,'Z'=>759,'['=>707,'\\'=>708,']'=>682,'^'=>701,'_'=>826,'`'=>815,'a'=>789,'b'=>789,'c'=>707,'d'=>687,'e'=>696,'f'=>689,'g'=>786,'h'=>787,'i'=>713,'j'=>791,'k'=>785,'l'=>791,'m'=>873,
'n'=>761,'o'=>762,'p'=>762,'q'=>759,'r'=>759,'s'=>892,'t'=>892,'u'=>788,'v'=>784,'w'=>438,'x'=>138,'y'=>277,'z'=>415,'{'=>392,'|'=>392,'}'=>668,'~'=>668,chr(127)=>0,chr(128)=>390,chr(129)=>390,chr(130)=>317,chr(131)=>317,
chr(132)=>276,chr(133)=>276,chr(134)=>509,chr(135)=>509,chr(136)=>410,chr(137)=>410,chr(138)=>234,chr(139)=>234,chr(140)=>334,chr(141)=>334,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>0,chr(161)=>732,chr(162)=>544,chr(163)=>544,chr(164)=>910,chr(165)=>667,chr(166)=>760,chr(167)=>760,chr(168)=>776,chr(169)=>595,chr(170)=>694,chr(171)=>626,chr(172)=>788,chr(173)=>788,chr(174)=>788,chr(175)=>788,
chr(176)=>788,chr(177)=>788,chr(178)=>788,chr(179)=>788,chr(180)=>788,chr(181)=>788,chr(182)=>788,chr(183)=>788,chr(184)=>788,chr(185)=>788,chr(186)=>788,chr(187)=>788,chr(188)=>788,chr(189)=>788,chr(190)=>788,chr(191)=>788,chr(192)=>788,chr(193)=>788,chr(194)=>788,chr(195)=>788,chr(196)=>788,chr(197)=>788,
chr(198)=>788,chr(199)=>788,chr(200)=>788,chr(201)=>788,chr(202)=>788,chr(203)=>788,chr(204)=>788,chr(205)=>788,chr(206)=>788,chr(207)=>788,chr(208)=>788,chr(209)=>788,chr(210)=>788,chr(211)=>788,chr(212)=>894,chr(213)=>838,chr(214)=>1016,chr(215)=>458,chr(216)=>748,chr(217)=>924,chr(218)=>748,chr(219)=>918,
chr(220)=>927,chr(221)=>928,chr(222)=>928,chr(223)=>834,chr(224)=>873,chr(225)=>828,chr(226)=>924,chr(227)=>924,chr(228)=>917,chr(229)=>930,chr(230)=>931,chr(231)=>463,chr(232)=>883,chr(233)=>836,chr(234)=>836,chr(235)=>867,chr(236)=>867,chr(237)=>696,chr(238)=>696,chr(239)=>874,chr(240)=>0,chr(241)=>874,
chr(242)=>760,chr(243)=>946,chr(244)=>771,chr(245)=>865,chr(246)=>771,chr(247)=>888,chr(248)=>967,chr(249)=>888,chr(250)=>831,chr(251)=>873,chr(252)=>927,chr(253)=>970,chr(254)=>918,chr(255)=>0);
$uv = array(32=>32,33=>array(9985,4),37=>9742,38=>array(9990,4),42=>9755,43=>9758,44=>array(9996,28),72=>9733,73=>array(10025,35),108=>9679,109=>10061,110=>9632,111=>array(10063,4),115=>9650,116=>9660,117=>9670,118=>10070,119=>9687,120=>array(10072,7),128=>array(10088,14),161=>array(10081,7),168=>9827,169=>9830,170=>9829,171=>9824,172=>array(9312,10),182=>array(10102,31),213=>8594,214=>array(8596,2),216=>array(10136,24),241=>array(10161,14));
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,251 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+20AC Euro
!82 U+201A quotesinglbase
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!89 U+2030 perthousand
!8A U+0160 Scaron
!8B U+2039 guilsinglleft
!8C U+015A Sacute
!8D U+0164 Tcaron
!8E U+017D Zcaron
!8F U+0179 Zacute
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9A U+0161 scaron
!9B U+203A guilsinglright
!9C U+015B sacute
!9D U+0165 tcaron
!9E U+017E zcaron
!9F U+017A zacute
!A0 U+00A0 space
!A1 U+02C7 caron
!A2 U+02D8 breve
!A3 U+0141 Lslash
!A4 U+00A4 currency
!A5 U+0104 Aogonek
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+00A8 dieresis
!A9 U+00A9 copyright
!AA U+015E Scedilla
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+017B Zdotaccent
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+02DB ogonek
!B3 U+0142 lslash
!B4 U+00B4 acute
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+00B8 cedilla
!B9 U+0105 aogonek
!BA U+015F scedilla
!BB U+00BB guillemotright
!BC U+013D Lcaron
!BD U+02DD hungarumlaut
!BE U+013E lcaron
!BF U+017C zdotaccent
!C0 U+0154 Racute
!C1 U+00C1 Aacute
!C2 U+00C2 Acircumflex
!C3 U+0102 Abreve
!C4 U+00C4 Adieresis
!C5 U+0139 Lacute
!C6 U+0106 Cacute
!C7 U+00C7 Ccedilla
!C8 U+010C Ccaron
!C9 U+00C9 Eacute
!CA U+0118 Eogonek
!CB U+00CB Edieresis
!CC U+011A Ecaron
!CD U+00CD Iacute
!CE U+00CE Icircumflex
!CF U+010E Dcaron
!D0 U+0110 Dcroat
!D1 U+0143 Nacute
!D2 U+0147 Ncaron
!D3 U+00D3 Oacute
!D4 U+00D4 Ocircumflex
!D5 U+0150 Ohungarumlaut
!D6 U+00D6 Odieresis
!D7 U+00D7 multiply
!D8 U+0158 Rcaron
!D9 U+016E Uring
!DA U+00DA Uacute
!DB U+0170 Uhungarumlaut
!DC U+00DC Udieresis
!DD U+00DD Yacute
!DE U+0162 Tcommaaccent
!DF U+00DF germandbls
!E0 U+0155 racute
!E1 U+00E1 aacute
!E2 U+00E2 acircumflex
!E3 U+0103 abreve
!E4 U+00E4 adieresis
!E5 U+013A lacute
!E6 U+0107 cacute
!E7 U+00E7 ccedilla
!E8 U+010D ccaron
!E9 U+00E9 eacute
!EA U+0119 eogonek
!EB U+00EB edieresis
!EC U+011B ecaron
!ED U+00ED iacute
!EE U+00EE icircumflex
!EF U+010F dcaron
!F0 U+0111 dcroat
!F1 U+0144 nacute
!F2 U+0148 ncaron
!F3 U+00F3 oacute
!F4 U+00F4 ocircumflex
!F5 U+0151 ohungarumlaut
!F6 U+00F6 odieresis
!F7 U+00F7 divide
!F8 U+0159 rcaron
!F9 U+016F uring
!FA U+00FA uacute
!FB U+0171 uhungarumlaut
!FC U+00FC udieresis
!FD U+00FD yacute
!FE U+0163 tcommaaccent
!FF U+02D9 dotaccent

View File

@@ -0,0 +1,255 @@
!00 U+0000 .notdef
!01 U+0001 .notdef
!02 U+0002 .notdef
!03 U+0003 .notdef
!04 U+0004 .notdef
!05 U+0005 .notdef
!06 U+0006 .notdef
!07 U+0007 .notdef
!08 U+0008 .notdef
!09 U+0009 .notdef
!0A U+000A .notdef
!0B U+000B .notdef
!0C U+000C .notdef
!0D U+000D .notdef
!0E U+000E .notdef
!0F U+000F .notdef
!10 U+0010 .notdef
!11 U+0011 .notdef
!12 U+0012 .notdef
!13 U+0013 .notdef
!14 U+0014 .notdef
!15 U+0015 .notdef
!16 U+0016 .notdef
!17 U+0017 .notdef
!18 U+0018 .notdef
!19 U+0019 .notdef
!1A U+001A .notdef
!1B U+001B .notdef
!1C U+001C .notdef
!1D U+001D .notdef
!1E U+001E .notdef
!1F U+001F .notdef
!20 U+0020 space
!21 U+0021 exclam
!22 U+0022 quotedbl
!23 U+0023 numbersign
!24 U+0024 dollar
!25 U+0025 percent
!26 U+0026 ampersand
!27 U+0027 quotesingle
!28 U+0028 parenleft
!29 U+0029 parenright
!2A U+002A asterisk
!2B U+002B plus
!2C U+002C comma
!2D U+002D hyphen
!2E U+002E period
!2F U+002F slash
!30 U+0030 zero
!31 U+0031 one
!32 U+0032 two
!33 U+0033 three
!34 U+0034 four
!35 U+0035 five
!36 U+0036 six
!37 U+0037 seven
!38 U+0038 eight
!39 U+0039 nine
!3A U+003A colon
!3B U+003B semicolon
!3C U+003C less
!3D U+003D equal
!3E U+003E greater
!3F U+003F question
!40 U+0040 at
!41 U+0041 A
!42 U+0042 B
!43 U+0043 C
!44 U+0044 D
!45 U+0045 E
!46 U+0046 F
!47 U+0047 G
!48 U+0048 H
!49 U+0049 I
!4A U+004A J
!4B U+004B K
!4C U+004C L
!4D U+004D M
!4E U+004E N
!4F U+004F O
!50 U+0050 P
!51 U+0051 Q
!52 U+0052 R
!53 U+0053 S
!54 U+0054 T
!55 U+0055 U
!56 U+0056 V
!57 U+0057 W
!58 U+0058 X
!59 U+0059 Y
!5A U+005A Z
!5B U+005B bracketleft
!5C U+005C backslash
!5D U+005D bracketright
!5E U+005E asciicircum
!5F U+005F underscore
!60 U+0060 grave
!61 U+0061 a
!62 U+0062 b
!63 U+0063 c
!64 U+0064 d
!65 U+0065 e
!66 U+0066 f
!67 U+0067 g
!68 U+0068 h
!69 U+0069 i
!6A U+006A j
!6B U+006B k
!6C U+006C l
!6D U+006D m
!6E U+006E n
!6F U+006F o
!70 U+0070 p
!71 U+0071 q
!72 U+0072 r
!73 U+0073 s
!74 U+0074 t
!75 U+0075 u
!76 U+0076 v
!77 U+0077 w
!78 U+0078 x
!79 U+0079 y
!7A U+007A z
!7B U+007B braceleft
!7C U+007C bar
!7D U+007D braceright
!7E U+007E asciitilde
!7F U+007F .notdef
!80 U+0402 afii10051
!81 U+0403 afii10052
!82 U+201A quotesinglbase
!83 U+0453 afii10100
!84 U+201E quotedblbase
!85 U+2026 ellipsis
!86 U+2020 dagger
!87 U+2021 daggerdbl
!88 U+20AC Euro
!89 U+2030 perthousand
!8A U+0409 afii10058
!8B U+2039 guilsinglleft
!8C U+040A afii10059
!8D U+040C afii10061
!8E U+040B afii10060
!8F U+040F afii10145
!90 U+0452 afii10099
!91 U+2018 quoteleft
!92 U+2019 quoteright
!93 U+201C quotedblleft
!94 U+201D quotedblright
!95 U+2022 bullet
!96 U+2013 endash
!97 U+2014 emdash
!99 U+2122 trademark
!9A U+0459 afii10106
!9B U+203A guilsinglright
!9C U+045A afii10107
!9D U+045C afii10109
!9E U+045B afii10108
!9F U+045F afii10193
!A0 U+00A0 space
!A1 U+040E afii10062
!A2 U+045E afii10110
!A3 U+0408 afii10057
!A4 U+00A4 currency
!A5 U+0490 afii10050
!A6 U+00A6 brokenbar
!A7 U+00A7 section
!A8 U+0401 afii10023
!A9 U+00A9 copyright
!AA U+0404 afii10053
!AB U+00AB guillemotleft
!AC U+00AC logicalnot
!AD U+00AD hyphen
!AE U+00AE registered
!AF U+0407 afii10056
!B0 U+00B0 degree
!B1 U+00B1 plusminus
!B2 U+0406 afii10055
!B3 U+0456 afii10103
!B4 U+0491 afii10098
!B5 U+00B5 mu
!B6 U+00B6 paragraph
!B7 U+00B7 periodcentered
!B8 U+0451 afii10071
!B9 U+2116 afii61352
!BA U+0454 afii10101
!BB U+00BB guillemotright
!BC U+0458 afii10105
!BD U+0405 afii10054
!BE U+0455 afii10102
!BF U+0457 afii10104
!C0 U+0410 afii10017
!C1 U+0411 afii10018
!C2 U+0412 afii10019
!C3 U+0413 afii10020
!C4 U+0414 afii10021
!C5 U+0415 afii10022
!C6 U+0416 afii10024
!C7 U+0417 afii10025
!C8 U+0418 afii10026
!C9 U+0419 afii10027
!CA U+041A afii10028
!CB U+041B afii10029
!CC U+041C afii10030
!CD U+041D afii10031
!CE U+041E afii10032
!CF U+041F afii10033
!D0 U+0420 afii10034
!D1 U+0421 afii10035
!D2 U+0422 afii10036
!D3 U+0423 afii10037
!D4 U+0424 afii10038
!D5 U+0425 afii10039
!D6 U+0426 afii10040
!D7 U+0427 afii10041
!D8 U+0428 afii10042
!D9 U+0429 afii10043
!DA U+042A afii10044
!DB U+042B afii10045
!DC U+042C afii10046
!DD U+042D afii10047
!DE U+042E afii10048
!DF U+042F afii10049
!E0 U+0430 afii10065
!E1 U+0431 afii10066
!E2 U+0432 afii10067
!E3 U+0433 afii10068
!E4 U+0434 afii10069
!E5 U+0435 afii10070
!E6 U+0436 afii10072
!E7 U+0437 afii10073
!E8 U+0438 afii10074
!E9 U+0439 afii10075
!EA U+043A afii10076
!EB U+043B afii10077
!EC U+043C afii10078
!ED U+043D afii10079
!EE U+043E afii10080
!EF U+043F afii10081
!F0 U+0440 afii10082
!F1 U+0441 afii10083
!F2 U+0442 afii10084
!F3 U+0443 afii10085
!F4 U+0444 afii10086
!F5 U+0445 afii10087
!F6 U+0446 afii10088
!F7 U+0447 afii10089
!F8 U+0448 afii10090
!F9 U+0449 afii10091
!FA U+044A afii10092
!FB U+044B afii10093
!FC U+044C afii10094
!FD U+044D afii10095
!FE U+044E afii10096
!FF U+044F afii10097

Some files were not shown because too many files have changed in this diff Show More