init commit
Some checks failed
Test / test (1.22.x, macos-latest) (push) Has been cancelled
Test / test (1.22.x, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
landaiqing
2026-02-10 14:45:18 +08:00
parent a530a79566
commit 5ce88674da
142 changed files with 12394 additions and 4280 deletions

View File

@@ -1,4 +1,4 @@
/*
/**
Bidirectional text processing.
Derived from the SmartOffice code, which is itself derived
@@ -21,8 +21,11 @@
#define FITZ_BIDI_H
#include "mupdf/fitz/system.h"
#include "mupdf/fitz/context.h"
typedef enum fz_bidi_direction_e
/* Implementation details: subject to change. */
typedef enum
{
FZ_BIDI_LTR = 0,
FZ_BIDI_RTL = 1,
@@ -30,14 +33,14 @@ typedef enum fz_bidi_direction_e
}
fz_bidi_direction;
typedef enum fz_bidi_flags_e
typedef enum
{
FZ_BIDI_CLASSIFY_WHITE_SPACE = 1,
FZ_BIDI_REPLACE_TAB = 2
}
fz_bidi_flags;
/*
/**
Prototype for callback function supplied to fz_bidi_fragment_text.
@param fragment first character in fragment
@@ -56,7 +59,7 @@ typedef void (fz_bidi_fragment_fn)(const uint32_t *fragment,
int script,
void *arg);
/*
/**
Partitions the given Unicode sequence into one or more
unidirectional fragments and invokes the given callback
function for each fragment.